mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
videomixer2: Fail when caps are incompatible
Do not forget to return false when caps are incompatible.
This commit is contained in:
parent
8435529073
commit
de8fda9cc2
1 changed files with 1 additions and 0 deletions
|
@ -260,6 +260,7 @@ gst_videomixer2_update_src_caps (GstVideoMixer2 * mix)
|
|||
gst_caps_unref (peercaps);
|
||||
caps = tmp;
|
||||
if (gst_caps_is_empty (caps)) {
|
||||
ret = FALSE;
|
||||
GST_VIDEO_MIXER2_UNLOCK (mix);
|
||||
goto done;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue