webrtcsink: dump discovery pipelines on state changes

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1238>
This commit is contained in:
Mathieu Duponchelle 2023-06-08 15:31:30 +02:00
parent 7447d95f1b
commit 7f78a8428e

View file

@ -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) => {