summaryrefslogtreecommitdiffstats
path: root/recipes-multimedia/gstreamer/files/0001-protection-Add-a-new-definition-for-unspecified-syst.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-multimedia/gstreamer/files/0001-protection-Add-a-new-definition-for-unspecified-syst.patch')
-rw-r--r--recipes-multimedia/gstreamer/files/0001-protection-Add-a-new-definition-for-unspecified-syst.patch68
1 files changed, 68 insertions, 0 deletions
diff --git a/recipes-multimedia/gstreamer/files/0001-protection-Add-a-new-definition-for-unspecified-syst.patch b/recipes-multimedia/gstreamer/files/0001-protection-Add-a-new-definition-for-unspecified-syst.patch
new file mode 100644
index 00000000..5b3faf60
--- /dev/null
+++ b/recipes-multimedia/gstreamer/files/0001-protection-Add-a-new-definition-for-unspecified-syst.patch
@@ -0,0 +1,68 @@
1From 05a3da347b3b8dbaf470793dc3f9ebb23e6fc67f Mon Sep 17 00:00:00 2001
2From: Yacine Bandou <yacine.bandou@softathome.com>
3Date: Mon, 1 Oct 2018 12:11:47 +0200
4Subject: [PATCH] protection: Add a new definition for unspecified system
5 protection
6
7In some cases the system protection ID is not present in the contents
8or in their metadata.
9This define is used to set the value of the "system_id" field in GstProtectionEvent,
10with this value, the application will use an external information to choose which
11protection system to use.
12
13Example: The matroskademux uses this value in the case of encrypted WebM,
14the application will choose the appropriate protection system based on the information
15received through EME API.
16
17https://bugzilla.gnome.org/show_bug.cgi?id=797231
18Upstream-Status: Backport [1.15.1]
19
20---
21 docs/gst/gstreamer-sections.txt | 1 +
22 gst/gstprotection.h | 18 ++++++++++++++++++
23 2 files changed, 19 insertions(+)
24
25diff --git a/docs/gst/gstreamer-sections.txt b/docs/gst/gstreamer-sections.txt
26index 492c4d5..ecc6b04 100644
27--- a/docs/gst/gstreamer-sections.txt
28+++ b/docs/gst/gstreamer-sections.txt
29@@ -2506,6 +2506,7 @@ gst_buffer_get_protection_meta
30 gst_protection_select_system
31 gst_protection_filter_systems_by_available_decryptors
32 GST_PROTECTION_SYSTEM_ID_CAPS_FIELD
33+GST_PROTECTION_UNSPECIFIED_SYSTEM_ID
34 <SUBSECTION Standard>
35 GST_PROTECTION_META_API_TYPE
36 GST_PROTECTION_META_INFO
37diff --git a/gst/gstprotection.h b/gst/gstprotection.h
38index a7669ea..0ed87e4 100644
39--- a/gst/gstprotection.h
40+++ b/gst/gstprotection.h
41@@ -34,6 +34,24 @@ G_BEGIN_DECLS
42 */
43 #define GST_PROTECTION_SYSTEM_ID_CAPS_FIELD "protection-system"
44
45+/**
46+ * GST_PROTECTION_UNSPECIFIED_SYSTEM_ID:
47+ *
48+ * The protection system value of the unspecified UUID.
49+ * In some cases the system protection ID is not present in the contents or in their
50+ * metadata, as encrypted WebM.
51+ * This define is used to set the value of the "system_id" field in GstProtectionEvent,
52+ * with this value, the application will use an external information to choose which
53+ * protection system to use.
54+ *
55+ * Example: The matroskademux uses this value in the case of encrypted WebM,
56+ * the application will choose the appropriate protection system based on the information
57+ * received through EME API.
58+ *
59+ * Since: 1.16
60+ */
61+#define GST_PROTECTION_UNSPECIFIED_SYSTEM_ID "unspecified.gstreamer.org"
62+
63 typedef struct _GstProtectionMeta GstProtectionMeta;
64 /**
65 * GstProtectionMeta:
66--
672.7.4
68