zbar: don't ignore zbar_scan_image() errors

This commit is contained in:
Reynaldo H. Verdejo Pinochet 2015-06-02 11:31:00 -03:00
parent 840f63896f
commit 79d9c34205

View file

@ -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;