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:
Francisco Javier Velázquez-García 2024-12-05 13:39:38 +01:00 committed by GStreamer Marge Bot
parent f9845d0266
commit 55dc51004c

View file

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