videomixer2: Fail when caps are incompatible

Do not forget to return false when caps are incompatible.
This commit is contained in:
Thiago Santos 2010-09-05 22:31:34 -03:00
parent 8435529073
commit de8fda9cc2

View file

@ -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;
} }