fallbackswitch: log when handling events

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1248>
This commit is contained in:
Guillaume Desmottes 2023-06-12 16:40:41 +02:00 committed by Sebastian Dröge
parent aa799bc26c
commit 06c5d8766d

View file

@ -832,6 +832,8 @@ impl FallbackSwitch {
}
fn sink_event(&self, pad: &super::FallbackSwitchSinkPad, event: gst::Event) -> bool {
log!(CAT, obj: pad, "Handling event {:?}", event);
if let gst::EventView::Gap(ev) = event.view() {
let mut buffer = gst::Buffer::new();