qroverlay: Make default pizel-size 3
authorThibault Saunier <tsaunier@igalia.com>
Sat, 11 Jul 2020 19:04:57 +0000 (15:04 -0400)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 11 Nov 2020 00:18:32 +0000 (00:18 +0000)
Otherwise zbar isn't able to read the produced qrcodes

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1730>

ext/qroverlay/gstqroverlay.c

index b7344da..122bfa4 100755 (executable)
@@ -92,6 +92,7 @@ static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
     );
 
 #define DEFAULT_PROP_QUALITY    1
+#define DEFAULT_PROP_PIXEL_SIZE    3
 
 #define GST_TYPE_QRCODE_QUALITY (gst_qrcode_quality_get_type())
 static GType
@@ -160,7 +161,7 @@ gst_qr_overlay_class_init (GstQROverlayClass * klass)
   g_object_class_install_property (gobject_class,
       PROP_PIXEL_SIZE, g_param_spec_float ("pixel-size",
           "pixel-size", "Pixel size of each Qrcode pixel",
-          1, 100.0, 1, G_PARAM_READWRITE));
+          1, 100.0, DEFAULT_PROP_PIXEL_SIZE, G_PARAM_READWRITE));
 
   g_object_class_install_property (gobject_class,
       PROP_DATA_INTERVAL_BUFFERS,
@@ -226,7 +227,7 @@ gst_qr_overlay_init (GstQROverlay * filter)
   filter->extra_data_interval_buffers = 60;
   filter->extra_data_span_buffers = 1;
   filter->span_frame = 0;
-  filter->qrcode_size = 1;
+  filter->qrcode_size = DEFAULT_PROP_PIXEL_SIZE;
 }
 
 static void