mediastreamer: rebuild for zxing-cpp-3.0.2

This commit is contained in:
Đoàn Trần Công Danh
2026-07-24 22:28:57 +07:00
parent 52e74987e8
commit f58e907478
2 changed files with 25 additions and 1 deletions
@@ -0,0 +1,24 @@
--- a/src/videofilters/zxing_qrcode.cpp
+++ b/src/videofilters/zxing_qrcode.cpp
@@ -44,8 +44,10 @@
#define ZX_USE_UTF8
#if ZXING_USE_BUILD_INTERFACE
#include <ReadBarcode.h>
+#include <Version.h>
#else
#include <ZXing/ReadBarcode.h>
+#include <ZXing/Version.h>
#endif
#if defined(__clang__) || ((__GNUC__ == 4 && __GNUC_MINOR__ >= 6) || __GNUC__ > 4)
@@ -120,6 +122,10 @@ static int set_decoder_rect(MSFilter *f,
qrc->decoderRect = *rect;
return 0;
}
+#if ZXING_VERSION_MAJOR >= 3
+typedef ZXing::ReaderOptions DecodeHints;
+typedef ZXing::Barcodes Results;
+#endif
static void read_qrcode(MSFilter *f) {
QRCodeReaderStruct *qrc = (QRCodeReaderStruct *)f->data;
+1 -1
View File
@@ -1,7 +1,7 @@
# Template file for 'mediastreamer'
pkgname=mediastreamer
version=5.3.106
revision=4
revision=5
build_style=cmake
configure_args="-DENABLE_STRICT=0 -DENABLE_UNIT_TESTS=0 -DBUILD_SHARED_LIBS=TRUE
-DENABLE_QT_GL=TRUE -DENABLE_FFMPEG=0 -DENABLE_LIBYUV=1"