videomixer2: Fail when caps are incompatible
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>
Mon, 6 Sep 2010 01:31:34 +0000 (22:31 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Mon, 6 Sep 2010 01:34:36 +0000 (22:34 -0300)
Do not forget to return false when caps are incompatible.

gst/videomixer/videomixer2.c

index c9d46f3..647ae2c 100644 (file)
@@ -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;
       }