From fe718afc521a2478985912e95aae882db59786d5 Mon Sep 17 00:00:00 2001 From: Wanjohi <71614375+wanjohiryan@users.noreply.github.com> Date: Wed, 24 Jan 2024 09:25:12 +0300 Subject: [PATCH] fix(sink): add none --- src/media.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/media.rs b/src/media.rs index 8955af0..ebbbe05 100644 --- a/src/media.rs +++ b/src/media.rs @@ -272,7 +272,7 @@ impl GST { // Set up a pad probe on the sink pad to intercept queries let sink_pad = appsink.static_pad("sink").unwrap(); - + //FIX: https://github.com/sdroege/gst-plugin-rs/blob/95c007953c0874bc46152078775d673cf44cc255/mux/mp4/src/mp4mux/imp.rs#L1243 sink_pad.add_probe(gst::PadProbeType::QUERY_DOWNSTREAM, move |_pad, info| { let Some(query) = info.query_mut() else { @@ -296,14 +296,14 @@ impl GST { // For other formats, do not handle the seeking query q.set( false, - 0.bytes(), + gst::GenericFormattedValue::none_for_format(format), gst::GenericFormattedValue::none_for_format(format), ); } } } _ => { - unreachable!(); + unreachable!("query seeking"); } } gst::PadProbeReturn::Pass