From a65cea7c6990dcd81384824877dc8c7af9d04fbe Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Sat, 13 Jun 2015 12:25:19 -0400 Subject: [PATCH] gstprotection: Add missing namespace to macro GST_PROTECTION_SYSTEM_ID_CAPS_FIELD was missing the GST_ namespace. Add it before its too late. --- gst/gstprotection.c | 6 +++--- gst/gstprotection.h | 11 ++++++++--- tests/check/gst/gstprotection.c | 2 +- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/gst/gstprotection.c b/gst/gstprotection.c index 36f36ad..9d25fb9 100644 --- a/gst/gstprotection.c +++ b/gst/gstprotection.c @@ -187,10 +187,10 @@ gst_protection_factory_check (GstElementFactory * fact, GstStructure *st; st = gst_caps_get_structure (caps, i); - if (gst_structure_has_field_typed (st, PROTECTION_SYSTEM_ID_CAPS_FIELD, - G_TYPE_STRING)) { + if (gst_structure_has_field_typed (st, + GST_PROTECTION_SYSTEM_ID_CAPS_FIELD, G_TYPE_STRING)) { const gchar *sys_id = - gst_structure_get_string (st, PROTECTION_SYSTEM_ID_CAPS_FIELD); + gst_structure_get_string (st, GST_PROTECTION_SYSTEM_ID_CAPS_FIELD); GST_DEBUG ("Found decryptor that supports protection system %s", sys_id); for (guint j = 0; !retval && system_identifiers[j]; ++j) { diff --git a/gst/gstprotection.h b/gst/gstprotection.h index 9a4b86a..1132164 100644 --- a/gst/gstprotection.h +++ b/gst/gstprotection.h @@ -24,10 +24,15 @@ G_BEGIN_DECLS -/* @PROTECTION_SYSTEM_ID_CAPS_FIELD: The field name in a GstCaps that is - * used to signal the UUID of the protection system +/** + * GST_PROTECTION_SYSTEM_ID_CAPS_FIELD: + * + * The field name in a GstCaps that is used to signal the UUID of the protection + * system. + * + * Since 1.6 */ -#define PROTECTION_SYSTEM_ID_CAPS_FIELD "protection-system" +#define GST_PROTECTION_SYSTEM_ID_CAPS_FIELD "protection-system" typedef struct _GstProtectionMeta GstProtectionMeta; /** diff --git a/tests/check/gst/gstprotection.c b/tests/check/gst/gstprotection.c index 3f11f8a..89181f8 100644 --- a/tests/check/gst/gstprotection.c +++ b/tests/check/gst/gstprotection.c @@ -68,7 +68,7 @@ GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_ALWAYS, GST_STATIC_CAPS ("application/x-cenc, original-media-type=(string)video/x-h264, " - PROTECTION_SYSTEM_ID_CAPS_FIELD "=(string)" CLEARKEY_SYSTEM_ID) + GST_PROTECTION_SYSTEM_ID_CAPS_FIELD "=(string)" CLEARKEY_SYSTEM_ID) ); static void -- 2.7.4