mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-06-09 17:59:23 +00:00
Merge branch 'webrtcsink-rtp-error' into 'main'
webrtcsink: improve error when no discovery pipeline runs Closes #534 See merge request gstreamer/gst-plugins-rs!1560
This commit is contained in:
commit
ed032c9723
|
@ -3527,6 +3527,15 @@ impl BaseWebRTCSink {
|
|||
} else {
|
||||
let sink_caps = discovery_info.caps.clone();
|
||||
|
||||
if codecs.is_empty() {
|
||||
return Err(anyhow!(
|
||||
"No codec available for encoding stream {}, \
|
||||
check the webrtcsink logs and verify that \
|
||||
the rtp plugin is available",
|
||||
name
|
||||
));
|
||||
}
|
||||
|
||||
let is_video = match sink_caps.structure(0).unwrap().name().as_str() {
|
||||
"video/x-raw" => true,
|
||||
"audio/x-raw" => false,
|
||||
|
|
Loading…
Reference in a new issue