From de8fda9cc243d20ec83a42325c9c5088b7a26cfa Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Sun, 5 Sep 2010 22:31:34 -0300 Subject: [PATCH] videomixer2: Fail when caps are incompatible Do not forget to return false when caps are incompatible. --- gst/videomixer/videomixer2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/videomixer/videomixer2.c b/gst/videomixer/videomixer2.c index c9d46f34b6..647ae2c34a 100644 --- a/gst/videomixer/videomixer2.c +++ b/gst/videomixer/videomixer2.c @@ -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; }