mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
zbar: don't ignore zbar_scan_image() errors
This commit is contained in:
parent
840f63896f
commit
79d9c34205
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue