zbar: don't ignore zbar_scan_image() errors
This commit is contained in:
parent
840f63896f
commit
79d9c34205
@ -299,6 +299,10 @@ gst_zbar_transform_frame_ip (GstVideoFilter * vfilter, GstVideoFrame * frame)
|
|||||||
|
|
||||||
/* scan the image for barcodes */
|
/* scan the image for barcodes */
|
||||||
n = zbar_scan_image (zbar->scanner, image);
|
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)
|
if (n == 0)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user