diff --git a/srcpkgs/mediastreamer/patches/zxing-3.patch b/srcpkgs/mediastreamer/patches/zxing-3.patch new file mode 100644 index 00000000000..8fc76ac44f1 --- /dev/null +++ b/srcpkgs/mediastreamer/patches/zxing-3.patch @@ -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 ++#include + #else + #include ++#include + #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; diff --git a/srcpkgs/mediastreamer/template b/srcpkgs/mediastreamer/template index 6420c29b9ab..132de499844 100644 --- a/srcpkgs/mediastreamer/template +++ b/srcpkgs/mediastreamer/template @@ -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"