summaryrefslogtreecommitdiff
path: root/gst/camerabin2
diff options
context:
space:
mode:
authorThiago Santos <thiagoss@osg.samsung.com>2015-04-24 14:13:34 -0300
committerThiago Santos <thiagoss@osg.samsung.com>2015-04-24 15:12:46 -0300
commit0c04f2f0ff4edad1513fb2600afc83760603937d (patch)
tree8109c99da4c36f0826a3b7cc9cc29406b6869eb1 /gst/camerabin2
parentaf1dda2ecde5545a50e7801637dedc9febc2ccf5 (diff)
downloadgstreamer-plugins-bad-0c04f2f0ff4edad1513fb2600afc83760603937d.tar.gz
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.
Diffstat (limited to 'gst/camerabin2')
-rw-r--r--gst/camerabin2/gstwrappercamerabinsrc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/camerabin2/gstwrappercamerabinsrc.c b/gst/camerabin2/gstwrappercamerabinsrc.c
index 8eda53cb4..84ff3887c 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);