mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-27 05:51:01 +00:00
Dot 'caps inspection' pipelines
This commit is contained in:
parent
85fd7175de
commit
300adda41b
1 changed files with 9 additions and 0 deletions
|
@ -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(&[
|
||||
|
|
Loading…
Reference in a new issue