Revert "bin: Hold the state lock while removing elements from a bin"
[platform/upstream/gstreamer.git] / gst / gstprotection.h
index 39b83c7..f77a7bf 100644 (file)
@@ -34,6 +34,24 @@ G_BEGIN_DECLS
  */
 #define GST_PROTECTION_SYSTEM_ID_CAPS_FIELD "protection-system"
 
+/**
+ * GST_PROTECTION_UNSPECIFIED_SYSTEM_ID:
+ *
+ * The protection system value of the unspecified UUID.
+ * In some cases the system protection ID is not present in the contents or in their
+ * metadata, as encrypted WebM.
+ * This define is used to set the value of the "system_id" field in GstProtectionEvent,
+ * with this value, the application will use an external information to choose which
+ * protection system to use.
+ *
+ * Example: The matroskademux uses this value in the case of encrypted WebM,
+ * the application will choose the appropriate protection system based on the information
+ * received through EME API.
+ *
+ * Since: 1.16
+ */
+#define GST_PROTECTION_UNSPECIFIED_SYSTEM_ID "unspecified-system-id"
+
 typedef struct _GstProtectionMeta GstProtectionMeta;
 /**
  * GstProtectionMeta:
@@ -52,7 +70,7 @@ struct _GstProtectionMeta
   GstStructure *info;
 };
 
-GST_EXPORT
+GST_API
 GType gst_protection_meta_api_get_type (void);
 
 #define GST_PROTECTION_META_API_TYPE (gst_protection_meta_api_get_type())
@@ -62,14 +80,18 @@ GType gst_protection_meta_api_get_type (void);
 
 #define GST_PROTECTION_META_INFO (gst_protection_meta_get_info())
 
-GST_EXPORT
+GST_API
 const GstMetaInfo * gst_protection_meta_get_info (void);
 
-GST_EXPORT
+GST_API
 GstProtectionMeta * gst_buffer_add_protection_meta (GstBuffer * buffer,
                                                     GstStructure * info);
-GST_EXPORT
+GST_API
 const gchar * gst_protection_select_system (const gchar ** system_identifiers);
 
+GST_API
+gchar ** gst_protection_filter_systems_by_available_decryptors (
+    const gchar ** system_identifiers);
+
 G_END_DECLS
 #endif /* __GST_PROTECTION_META_H__ */