Dot 'caps inspection' pipelines

This commit is contained in:
Thibault Saunier 2021-12-23 15:59:18 +00:00 committed by Mathieu Duponchelle
parent 85fd7175de
commit 300adda41b

View file

@ -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(&[