mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-23 02:26:35 +00:00
utils/fallbacksrc: Fix fallback stream detection if only audio or video is enabled
This commit is contained in:
parent
7a2c8768ad
commit
34fab8786f
1 changed files with 2 additions and 0 deletions
|
@ -2078,6 +2078,7 @@ impl FallbackSrc {
|
|||
// is the fallback pad then we have the fallback activated.
|
||||
(!have_audio && !have_video)
|
||||
|| (have_audio
|
||||
&& state.audio_stream.is_some()
|
||||
&& state
|
||||
.audio_stream
|
||||
.as_ref()
|
||||
|
@ -2091,6 +2092,7 @@ impl FallbackSrc {
|
|||
.map(|p| p.get_name() == "fallback_sink")
|
||||
.unwrap_or(true))
|
||||
|| (have_video
|
||||
&& state.video_stream.is_some()
|
||||
&& state
|
||||
.video_stream
|
||||
.as_ref()
|
||||
|
|
Loading…
Reference in a new issue