summaryrefslogtreecommitdiff
path: root/gst/camerabin2
diff options
context:
space:
mode:
authorThiago Santos <thiagoss@osg.samsung.com>2015-04-22 13:05:42 -0300
committerThiago Santos <thiagoss@osg.samsung.com>2015-04-27 21:13:55 -0300
commit539db6f68bfd1a276a377fd58988556d6faa0f65 (patch)
tree57024d3d74d2b3bf6dda3c8786c57cad0f0c1efe /gst/camerabin2
parent3a70cf5667f3ec10b0dd356495c9c478b3b78e86 (diff)
downloadgstreamer-plugins-bad-539db6f68bfd1a276a377fd58988556d6faa0f65.tar.gz
digitalzoom: prevent assertion when caps is any
Diffstat (limited to 'gst/camerabin2')
-rw-r--r--gst/camerabin2/gstdigitalzoom.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gst/camerabin2/gstdigitalzoom.c b/gst/camerabin2/gstdigitalzoom.c
index 54019a1f6..1ca508505 100644
--- a/gst/camerabin2/gstdigitalzoom.c
+++ b/gst/camerabin2/gstdigitalzoom.c
@@ -76,6 +76,11 @@ gst_digital_zoom_update_crop (GstDigitalZoom * self, GstCaps * caps)
gfloat zoom;
GstStructure *structure;
+ if (caps == NULL || gst_caps_is_any (caps)) {
+ g_object_set (self->capsfilter, "caps", NULL, NULL);
+ return;
+ }
+
structure = gst_caps_get_structure (caps, 0);
gst_structure_get (structure, "width", G_TYPE_INT, &width, "height",
G_TYPE_INT, &height, NULL);