fallbackswitch: log when handling events

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1242>
This commit is contained in:
Guillaume Desmottes 2023-06-12 16:40:41 +02:00
parent cdd084bbe8
commit 692d1bfb9e

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();