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 c9d46f34b69d0da2aede9d05a6824f232f80fc6e..647ae2c34ac5bf2647df237e3f638a7df8212823 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;
       }