summarylogtreecommitdiffstats
path: root/fix-zxing-cpp-3.patch
blob: 43adb9eb5fcb4c63ede7027bdca29de21d2e14f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Adapt to zxing-cpp 3.x API: DecodeHints was renamed to ReaderOptions and
the Results type was renamed to Barcodes.
--- a/src/videofilters/zxing_qrcode.cpp
+++ b/src/videofilters/zxing_qrcode.cpp
@@ -124,10 +124,10 @@
 static void read_qrcode(MSFilter *f) {
 	QRCodeReaderStruct *qrc = (QRCodeReaderStruct *)f->data;
 	if (qrc->image.data(0, 0)) {
-		DecodeHints hints;
+		ReaderOptions hints;
 		hints.setFormats(BarcodeFormat::QRCode); // Search optimization : Only QRCode symbols are used.
 		hints.setReturnErrors(true);
-		Results results = ReadBarcodes(qrc->image, hints);
+		Barcodes results = ReadBarcodes(qrc->image, hints);
 		for (size_t i = 0; i < results.size(); ++i) {
 			if (results[i].error())
 				ms_warning("[MSQRCodeReader] Cannot decode QRCode : %s", ToString(results[i].error()).c_str());