mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
zxing: Update decode hints usage for compatibility with ZXing >= 2.2
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7879>
This commit is contained in:
parent
f9845d0266
commit
55dc51004c
1 changed files with 5 additions and 1 deletions
|
@ -415,7 +415,11 @@ gst_zxing_transform_frame_ip (GstVideoFilter * vfilter, GstVideoFrame * frame)
|
|||
GstZXing *zxing = GST_ZXING (vfilter);
|
||||
gpointer data;
|
||||
gint height, width;
|
||||
DecodeHints hints;
|
||||
#if ZXING_VERSION_MAJOR >= 2 && ZXING_VERSION_MINOR >= 2
|
||||
ReaderOptions hints;
|
||||
#else
|
||||
DecodeHints hints;
|
||||
#endif
|
||||
|
||||
hints.setTryRotate(zxing->rotate);
|
||||
hints.setTryHarder(!zxing->faster);
|
||||
|
|
Loading…
Reference in a new issue