summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorAlex Ashley <bugzilla@ashley-family.net>2015-04-15 15:33:31 +0100
committerTim-Philipp Müller <tim@centricular.com>2015-04-18 12:24:06 +0100
commitabdafb0d641448e4693bd98740f7c26f1860fa15 (patch)
treeac60eb385318d870769e1eac34666e7c80a068b0 /win32
parent0f36b16a29d86a0050b8978781339616233b1db5 (diff)
protection: add GstProtectionMeta to support protected content
In order to support some types of protected streams (such as those protected using DASH Common Encryption) some per-buffer information needs to be passed between elements. This commit adds a GstMeta type called GstProtectionMeta that allows protection specific information to be added to a GstBuffer. An example of its usage is qtdemux providing information to each output sample that enables a downstream element to decrypt it. This commit adds a utility function to select a supported protection system from the installed Decryption elements found in the registry. The gst_protection_select_system function that takes an array of identifiers and searches the registry for a element of klass Decryptor that supports one or more of the supplied identifiers. If multiple elements are found, the one with the highest rank is selected. This commit adds a unit test for the gst_protection_select_system function that adds a fake Decryptor element to the registry and then checks that it can correctly be selected by the utility function. This commit adds a unit test for GstProtectionMeta that creates GstProtectionMeta and adds & removes it from a buffer and performs some simple reference count checks. API: gst_buffer_add_protection_meta() API: gst_buffer_get_protection_meta() API: gst_protection_select_system() API: gst_protection_meta_api_get_type() API: gst_protection_meta_get_info() https://bugzilla.gnome.org/show_bug.cgi?id=705991
Diffstat (limited to 'win32')
-rw-r--r--win32/common/libgstreamer.def4
1 files changed, 4 insertions, 0 deletions
diff --git a/win32/common/libgstreamer.def b/win32/common/libgstreamer.def
index f567fdaef..63486b681 100644
--- a/win32/common/libgstreamer.def
+++ b/win32/common/libgstreamer.def
@@ -112,6 +112,7 @@ EXPORTS
gst_bin_sync_children_states
gst_bitmask_get_type
gst_buffer_add_meta
+ gst_buffer_add_protection_meta
gst_buffer_append
gst_buffer_append_memory
gst_buffer_append_region
@@ -990,6 +991,9 @@ EXPORTS
gst_preset_set_app_dir
gst_preset_set_meta
gst_progress_type_get_type
+ gst_protection_meta_api_get_type
+ gst_protection_meta_get_info
+ gst_protection_select_system
gst_proxy_pad_chain_default
gst_proxy_pad_chain_list_default
gst_proxy_pad_get_internal