diff options
Diffstat (limited to 'ext/zbar/gstzbar.c')
-rw-r--r-- | ext/zbar/gstzbar.c | 4 |
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; |