From 5c5c15d36ad1e21b01ea52a4f2a8250029c099f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Laignel?= Date: Mon, 4 Jul 2022 18:04:11 +0200 Subject: Simplify Formatted value handling See https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1059 --- text/json/src/jsongstparse/imp.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'text') 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 -- cgit v1.2.3