klv: make KLV support optional via ENABLE_KLV, disabled by default

This prevents the building of the klv library and plugin, and disables KLV
support and dependency in the Pleora plugin.
This commit is contained in:
Joshua M. Doe
2020-04-15 12:34:03 -04:00
parent feca1a7969
commit a6e97d08df
7 changed files with 36 additions and 7 deletions

View File

@@ -94,7 +94,7 @@ enum
#define DEFAULT_PROP_INFO "Pleora eBUS GStreamer Sink"
#define DEFAULT_PROP_SERIAL "0001"
#define DEFAULT_PROP_MAC ""
#define DEFAULT_PROP_OUTPUT_KLV TRUE
#define DEFAULT_PROP_OUTPUT_KLV FALSE
#define DEFAULT_PROP_AUTO_MULTICAST FALSE
#define DEFAULT_PROP_MULTICAST_GROUP "239.192.1.1"
#define DEFAULT_PROP_MULTICAST_PORT 1042
@@ -197,12 +197,14 @@ gst_pleorasink_class_init (GstPleoraSinkClass * klass)
DEFAULT_PROP_MAC,
(GParamFlags) (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS |
GST_PARAM_MUTABLE_READY)));
#ifdef GST_PLUGINS_VISION_ENABLE_KLV
g_object_class_install_property (gobject_class, PROP_OUTPUT_KLV,
g_param_spec_boolean ("output-klv", "Output KLV",
"Whether to output KLV as chunk data according to MISB ST1608",
DEFAULT_PROP_OUTPUT_KLV,
(GParamFlags) (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS |
GST_PARAM_MUTABLE_READY)));
#endif
g_object_class_install_property (gobject_class, PROP_AUTO_MULTICAST,
g_param_spec_boolean ("auto-multicast", "Auto multicast",
"Automatically multicast video, removing the need for a controller",