mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
zbar: disable cache by default
Since it breaks still image bar code detection.
This commit is contained in:
parent
50fa9610b1
commit
2122c1eb9a
1 changed files with 4 additions and 4 deletions
|
@ -102,10 +102,10 @@ enum
|
||||||
{
|
{
|
||||||
PROP_0,
|
PROP_0,
|
||||||
PROP_MESSAGE,
|
PROP_MESSAGE,
|
||||||
PROP_CACHE,
|
PROP_CACHE
|
||||||
};
|
};
|
||||||
|
|
||||||
#define DEFAULT_PROP_ZBAR 1
|
#define DEFAULT_CACHE FALSE
|
||||||
|
|
||||||
static GstStaticPadTemplate gst_zbar_src_template =
|
static GstStaticPadTemplate gst_zbar_src_template =
|
||||||
GST_STATIC_PAD_TEMPLATE ("src",
|
GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
|
@ -174,7 +174,7 @@ gst_zbar_class_init (GstZBarClass * g_class)
|
||||||
g_object_class_install_property (gobject_class, PROP_CACHE,
|
g_object_class_install_property (gobject_class, PROP_CACHE,
|
||||||
g_param_spec_boolean ("cache", "cache",
|
g_param_spec_boolean ("cache", "cache",
|
||||||
"Enable or disable the inter-image result cache",
|
"Enable or disable the inter-image result cache",
|
||||||
TRUE,
|
DEFAULT_CACHE,
|
||||||
G_PARAM_READWRITE | GST_PARAM_MUTABLE_READY |
|
G_PARAM_READWRITE | GST_PARAM_MUTABLE_READY |
|
||||||
G_PARAM_STATIC_STRINGS));
|
G_PARAM_STATIC_STRINGS));
|
||||||
|
|
||||||
|
@ -187,7 +187,7 @@ gst_zbar_class_init (GstZBarClass * g_class)
|
||||||
static void
|
static void
|
||||||
gst_zbar_init (GstZBar * zbar, GstZBarClass * g_class)
|
gst_zbar_init (GstZBar * zbar, GstZBarClass * g_class)
|
||||||
{
|
{
|
||||||
zbar->cache = TRUE;
|
zbar->cache = DEFAULT_CACHE;
|
||||||
zbar->message = TRUE;
|
zbar->message = TRUE;
|
||||||
|
|
||||||
zbar->scanner = zbar_image_scanner_create ();
|
zbar->scanner = zbar_image_scanner_create ();
|
||||||
|
|
Loading…
Reference in a new issue