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
@ -260,6 +260,7 @@ gst_videomixer2_update_src_caps (GstVideoMixer2 * mix)
|
|||||||
gst_caps_unref (peercaps);
|
gst_caps_unref (peercaps);
|
||||||
caps = tmp;
|
caps = tmp;
|
||||||
if (gst_caps_is_empty (caps)) {
|
if (gst_caps_is_empty (caps)) {
|
||||||
|
ret = FALSE;
|
||||||
GST_VIDEO_MIXER2_UNLOCK (mix);
|
GST_VIDEO_MIXER2_UNLOCK (mix);
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user