From 8863379c55805d792d412a9aa3daa71dec7da7a9 Mon Sep 17 00:00:00 2001 From: Wanjohi <71614375+wanjohiryan@users.noreply.github.com> Date: Wed, 24 Jan 2024 09:33:33 +0300 Subject: [PATCH] fix(sink): add ``gst::PadProbeReturn::Handled`` --- src/media.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/media.rs b/src/media.rs index ebbbe05..c7b6598 100644 --- a/src/media.rs +++ b/src/media.rs @@ -291,6 +291,7 @@ impl GST { 0.bytes(), gst::GenericFormattedValue::none_for_format(format), // No known end position, or you can specify it if known ); + gst::PadProbeReturn::Handled } _ => { // For other formats, do not handle the seeking query @@ -299,14 +300,12 @@ impl GST { gst::GenericFormattedValue::none_for_format(format), gst::GenericFormattedValue::none_for_format(format), ); + gst::PadProbeReturn::Handled } } } - _ => { - unreachable!("query seeking"); - } + _ => gst::PadProbeReturn::Ok, } - gst::PadProbeReturn::Pass }); // appsink.set_callbacks(