web: webrtcsink: improve panic message on unexpected caps during discovery

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1531>
This commit is contained in:
Guillaume Desmottes 2024-04-02 14:12:44 +02:00 committed by Sebastian Dröge
parent 762d4a4437
commit 3c71247ac9

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