From 300adda41bb3fd96cbd48fb5f43bb0c642663667 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Thu, 23 Dec 2021 15:59:18 +0000 Subject: [PATCH] Dot 'caps inspection' pipelines --- plugins/src/webrtcsink/imp.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plugins/src/webrtcsink/imp.rs b/plugins/src/webrtcsink/imp.rs index 151057f4..59bdf980 100644 --- a/plugins/src/webrtcsink/imp.rs +++ b/plugins/src/webrtcsink/imp.rs @@ -1945,11 +1945,20 @@ impl WebRTCSink { while let Some(msg) = stream.next().await { match msg.view() { gst::MessageView::Error(err) => { + pipe.0.debug_to_dot_file_with_ts( + gst::DebugGraphDetails::all(), + format!("webrtcsink-discovery-error"), + ); return Err(err.error().into()); } gst::MessageView::Eos(_) => { let caps = pay.static_pad("src").unwrap().current_caps().unwrap(); + pipe.0.debug_to_dot_file_with_ts( + gst::DebugGraphDetails::all(), + format!("webrtcsink-discovery-done"), + ); + if let Some(s) = caps.structure(0) { let mut s = s.to_owned(); s.remove_fields(&[