mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-03 15:58:42 +00:00
web: webrtcsink: improve panic message on unexpected caps during discovery
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1524>
This commit is contained in:
parent
35b84d219f
commit
b5cbc47cf7
1 changed files with 1 additions and 1 deletions
|
@ -3400,7 +3400,7 @@ impl BaseWebRTCSink {
|
|||
let is_video = match sink_caps.structure(0).unwrap().name().as_str() {
|
||||
"video/x-raw" => true,
|
||||
"audio/x-raw" => false,
|
||||
_ => unreachable!(),
|
||||
_ => panic!("expected audio or video raw caps: {sink_caps}"),
|
||||
};
|
||||
|
||||
codecs
|
||||
|
|
Loading…
Reference in a new issue