diff options
author | François Laignel <fengalin@free.fr> | 2022-07-04 19:04:11 +0300 |
---|---|---|
committer | François Laignel <fengalin@free.fr> | 2022-07-11 22:21:54 +0300 |
commit | 5c5c15d36ad1e21b01ea52a4f2a8250029c099f6 (patch) | |
tree | 0d600d35ecde6ec6f7bc51b479266a2ff6e3f0ed /text | |
parent | a1b87669f25a0fcdf0809ac646cde17957f26c52 (diff) |
Simplify Formatted value handling
See https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1059
Diffstat (limited to 'text')
-rw-r--r-- | text/json/src/jsongstparse/imp.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/text/json/src/jsongstparse/imp.rs b/text/json/src/jsongstparse/imp.rs index f561223ad..92d0378a9 100644 --- a/text/json/src/jsongstparse/imp.rs +++ b/text/json/src/jsongstparse/imp.rs @@ -801,11 +801,7 @@ impl JsonGstParse { if fmt == gst::Format::Time { if let Some(pull) = state.pull.as_ref() { - q.set( - true, - gst::GenericFormattedValue::Time(Some(gst::ClockTime::ZERO)), - gst::GenericFormattedValue::Time(pull.duration), - ); + q.set(true, gst::ClockTime::ZERO, pull.duration); true } else { false |