mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-06-26 10:00:36 +00:00
Dot 'caps inspection' pipelines
This commit is contained in:
parent
85fd7175de
commit
300adda41b
|
@ -1945,11 +1945,20 @@ impl WebRTCSink {
|
||||||
while let Some(msg) = stream.next().await {
|
while let Some(msg) = stream.next().await {
|
||||||
match msg.view() {
|
match msg.view() {
|
||||||
gst::MessageView::Error(err) => {
|
gst::MessageView::Error(err) => {
|
||||||
|
pipe.0.debug_to_dot_file_with_ts(
|
||||||
|
gst::DebugGraphDetails::all(),
|
||||||
|
format!("webrtcsink-discovery-error"),
|
||||||
|
);
|
||||||
return Err(err.error().into());
|
return Err(err.error().into());
|
||||||
}
|
}
|
||||||
gst::MessageView::Eos(_) => {
|
gst::MessageView::Eos(_) => {
|
||||||
let caps = pay.static_pad("src").unwrap().current_caps().unwrap();
|
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) {
|
if let Some(s) = caps.structure(0) {
|
||||||
let mut s = s.to_owned();
|
let mut s = s.to_owned();
|
||||||
s.remove_fields(&[
|
s.remove_fields(&[
|
||||||
|
|
Loading…
Reference in a new issue