Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/text
diff options
context:
space:
mode:
authorFrançois Laignel <fengalin@free.fr>2022-07-04 19:04:11 +0300
committerFrançois Laignel <fengalin@free.fr>2022-07-11 22:21:54 +0300
commit5c5c15d36ad1e21b01ea52a4f2a8250029c099f6 (patch)
tree0d600d35ecde6ec6f7bc51b479266a2ff6e3f0ed /text
parenta1b87669f25a0fcdf0809ac646cde17957f26c52 (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.rs6
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