From 7f78a8428ef6180464c9844958bdb3deebca18b0 Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Thu, 8 Jun 2023 15:31:30 +0200 Subject: [PATCH] webrtcsink: dump discovery pipelines on state changes Part-of: --- net/webrtc/src/webrtcsink/imp.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/net/webrtc/src/webrtcsink/imp.rs b/net/webrtc/src/webrtcsink/imp.rs index cdc46131..96278ec5 100644 --- a/net/webrtc/src/webrtcsink/imp.rs +++ b/net/webrtc/src/webrtcsink/imp.rs @@ -2780,6 +2780,20 @@ impl BaseWebRTCSink { ); return Err(err.error().into()); } + gst::MessageView::StateChanged(s) => { + if msg.src() == Some(pipe.0.upcast_ref()) { + pipe.0.debug_to_dot_file_with_ts( + gst::DebugGraphDetails::all(), + format!( + "webrtcsink-discovery-{}-{:?}-{:?}", + pipe.0.name(), + s.old(), + s.current() + ), + ); + } + continue; + } gst::MessageView::Application(appmsg) => { let caps = match appmsg.structure() { Some(s) => {