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:
Guillaume Desmottes 2024-04-02 14:12:44 +02:00
parent 35b84d219f
commit b5cbc47cf7

View file

@ -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