summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>2015-06-02 11:31:00 -0300
committerReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>2015-06-02 12:27:10 -0300
commit79d9c34205b4dedec74eb916e364009831fb701d (patch)
tree4d1dd6a541e03ed48551643cc6ff064fed337f1d /ext
parent840f63896f5c2ca9cefbf6d26c75c6096cdc5155 (diff)
downloadgstreamer-plugins-bad-79d9c34205b4dedec74eb916e364009831fb701d.tar.gz
zbar: don't ignore zbar_scan_image() errors
Diffstat (limited to 'ext')
-rw-r--r--ext/zbar/gstzbar.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/zbar/gstzbar.c b/ext/zbar/gstzbar.c
index faf2b5580..2bb0a7d8f 100644
--- a/ext/zbar/gstzbar.c
+++ b/ext/zbar/gstzbar.c
@@ -299,6 +299,10 @@ gst_zbar_transform_frame_ip (GstVideoFilter * vfilter, GstVideoFrame * frame)
/* scan the image for barcodes */
n = zbar_scan_image (zbar->scanner, image);
+ if (G_UNLIKELY (n == -1)) {
+ GST_WARNING_OBJECT (zbar, "Error trying to scan frame. Skipping");
+ goto out;
+ }
if (n == 0)
goto out;