From: Thiago Santos Date: Fri, 24 Apr 2015 17:13:34 +0000 (-0300) Subject: wrappercamerabinsrc: intersect instead of compare for equality X-Git-Tag: 1.6.0~955 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0c04f2f0ff4edad1513fb2600afc83760603937d;p=platform%2Fupstream%2Fgst-plugins-bad.git wrappercamerabinsrc: intersect instead of compare for equality Intersect is enough to check if the requested caps are compatible with what the source is going to provide. Equality will be too strict. --- diff --git a/gst/camerabin2/gstwrappercamerabinsrc.c b/gst/camerabin2/gstwrappercamerabinsrc.c index 8eda53c..84ff388 100644 --- a/gst/camerabin2/gstwrappercamerabinsrc.c +++ b/gst/camerabin2/gstwrappercamerabinsrc.c @@ -776,7 +776,7 @@ img_capture_prepared (gpointer data, GstCaps * caps) GST_INFO_OBJECT (self, "image capture prepared"); /* It is possible we are about to get something else that we requested */ - if (!gst_caps_is_equal (self->image_capture_caps, caps)) { + if (!gst_caps_can_intersect (self->image_capture_caps, caps)) { adapt_image_capture (self, caps); } else { set_capsfilter_caps (self, self->image_capture_caps);