diff options
author | François Laignel <fengalin@free.fr> | 2021-06-04 20:06:24 +0300 |
---|---|---|
committer | François Laignel <fengalin@free.fr> | 2021-06-05 11:36:21 +0300 |
commit | e16cad7c8f4000ab5b1d649e54b8d6f8e19cf154 (patch) | |
tree | 4dfa96ee5452d77320399452e3d87d9f56217a7a /video/closedcaption/tests/scc_enc.rs | |
parent | c2de0649a736fde8435434e0e6483c5ad96fdfe2 (diff) |
video: migrate to new ClockTime design
Diffstat (limited to 'video/closedcaption/tests/scc_enc.rs')
-rw-r--r-- | video/closedcaption/tests/scc_enc.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/video/closedcaption/tests/scc_enc.rs b/video/closedcaption/tests/scc_enc.rs index 3308344c1..884e9e72f 100644 --- a/video/closedcaption/tests/scc_enc.rs +++ b/video/closedcaption/tests/scc_enc.rs @@ -69,8 +69,8 @@ fn test_encode_single_packet() { .tc(); assert_eq!(timecode, tc); - let pts = buf.pts(); - assert_eq!(pts, gst::ClockTime::from_seconds(0)); + let pts = buf.pts().unwrap(); + assert_eq!(pts, gst::ClockTime::ZERO); let map = buf.map_readable().expect("Couldn't map buffer readable"); assert_eq!( @@ -168,8 +168,8 @@ fn test_encode_multiple_packets() { .tc(); assert_eq!(timecode, tc1); - let pts = buf.pts(); - assert_eq!(pts, gst::ClockTime::from_seconds(0)); + let pts = buf.pts().unwrap(); + assert_eq!(pts, gst::ClockTime::ZERO); let map = buf.map_readable().expect("Couldn't map buffer readable"); @@ -186,8 +186,8 @@ fn test_encode_multiple_packets() { .tc(); assert_eq!(timecode, tc2); - // let pts = buf.get_pts(); - // assert_eq!(pts, gst::ClockTime::from_seconds(0)); + // let pts = buf.get_pts().unwrap(); + // assert_eq!(pts, gst::ClockTime::ZERO); let map = buf.map_readable().expect("Couldn't map buffer readable"); assert_eq!( @@ -215,8 +215,8 @@ fn test_encode_multiple_packets() { .tc(); assert_eq!(timecode, tc3); - // let pts = buf.get_pts(); - // assert_eq!(pts, gst::ClockTime::from_seconds(0)); + // let pts = buf.get_pts().unwrap(); + // assert_eq!(pts, gst::ClockTime::ZERO); let map = buf.map_readable().expect("Couldn't map buffer readable"); assert_eq!( |