gstreamer/tests/check/gst
Alex Ashley abdafb0d64 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
2015-04-18 12:24:06 +01:00
..
.gitignore protection: add GstProtectionMeta to support protected content 2015-04-18 12:24:06 +01:00
capslist.h tests: fix old caps in tests now that core warns 2012-03-01 17:41:56 +01:00
gst.c Fix FSF address 2012-11-03 20:44:48 +00:00
gstabi.c libsabi: Special struct size values for W32 2013-04-09 20:10:46 +02:00
gstatomicqueue.c Fix FSF address 2012-11-03 20:44:48 +00:00
gstbin.c tests: Add missing unrefs of objects after use 2014-08-06 13:47:11 +02:00
gstbuffer.c gstbuffer: add gst_buffer_copy_deep 2015-03-13 18:37:04 +00:00
gstbufferlist.c tests: don't use post-GLib 2.32 API in bufferlist test 2014-07-02 08:41:44 +01:00
gstbufferpool.c bufferpool: Don't stop the pool in set_config() 2015-03-14 12:00:53 +00:00
gstbus.c tests: bus: add unit test for async message delivery 2015-02-17 09:52:14 +00:00
gstcaps.c structure/caps: Add gst_{structure,caps}_filter_and_map_in_place() 2014-12-16 18:22:46 +01:00
gstcapsfeatures.c capsfeatures: Add GST_CAPS_FEATURES_ANY 2013-04-02 22:17:22 +02:00
gstchildproxy.c Fix FSF address 2012-11-03 20:44:48 +00:00
gstclock.c tests: clock: fix test clock name 2015-04-15 09:31:11 +01:00
gstcontext.c context: Add test for the context caching in GstBin 2013-09-24 13:11:47 +02:00
gstcontroller.c controller: code cleanups 2013-03-08 13:16:40 +01:00
gstcpp.cc tests: rebuild one test using cpp 2010-09-22 10:22:40 +03:00
gstdatetime.c Fix FSF address 2012-11-03 20:44:48 +00:00
gstdevice.c devicemonitor: don't fail when started without any filters 2014-06-27 10:47:50 +01:00
gstelement.c Revert "element: set pads need-parent flag to false when removing" 2015-02-20 16:22:23 -05:00
gstelementfactory.c Fix FSF address 2012-11-03 20:44:48 +00:00
gstevent.c event: add new GST_EVENT_PROTECTION 2015-04-18 12:04:29 +01:00
gstghostpad.c tests: Fix event order warnings and dataflow before stream-start/segment event 2013-05-09 13:32:07 +02:00
gstindex.c Fix FSF address 2012-11-03 20:44:48 +00:00
gstinfo.c tests: info: fix unit test when run with GST_DEBUG=*:9 2015-04-18 12:01:54 +01:00
gstiterator.c iterator: Add unit tests for filtering, recursive filtering and locking 2014-01-18 14:48:54 +01:00
gstmemory.c Fix FSF address 2012-11-03 20:44:48 +00:00
gstmessage.c message: accept NULL error argument in gst_message_parse_{error,warning,info} 2013-02-13 16:52:13 +00:00
gstmeta.c Fix FSF address 2012-11-03 20:44:48 +00:00
gstminiobject.c Fix FSF address 2012-11-03 20:44:48 +00:00
gstobject.c gstobject: Don't check booleans for equality in the unit test 2014-11-10 10:03:57 +01:00
gstpad.c tests: pad: fix buffer leak in new blocking_with_probe_type_idle test 2015-04-18 12:01:54 +01:00
gstparamspecs.c Fix FSF address 2012-11-03 20:44:48 +00:00
gstpipeline.c pipeline: Add unit test for resetting of the start time 2014-07-21 09:33:54 +02:00
gstplugin.c Fix FSF address 2012-11-03 20:44:48 +00:00
gstpoll.c tests: fix locking in gstpoll unit test 2014-07-06 12:10:09 +01:00
gstpreset.c Fix FSF address 2012-11-03 20:44:48 +00:00
gstprintf.c tests: add some basic unit tests for our printf stuff 2015-03-12 13:29:05 +00:00
gstprotection.c protection: add GstProtectionMeta to support protected content 2015-04-18 12:24:06 +01:00
gstquery.c Fix FSF address 2012-11-03 20:44:48 +00:00
gstregistry.c Fix FSF address 2012-11-03 20:44:48 +00:00
gstsegment.c segment: remove the bounds check from _to_running_time_full() 2015-03-20 09:00:47 +01:00
gststructure.c structure/caps: Add gst_{structure,caps}_filter_and_map_in_place() 2014-12-16 18:22:46 +01:00
gstsystemclock.c tests: fix leak in systemclock test 2014-02-08 23:39:03 +00:00
gsttag.c tests: tag: add the empty taglist serialization test 2014-07-21 12:40:47 -03:00
gsttagsetter.c Fix FSF address 2012-11-03 20:44:48 +00:00
gsttask.c task: Fix pause/stop race condition 2014-11-12 12:00:48 +01:00
gsttoc.c Fix FSF address 2012-11-03 20:44:48 +00:00
gsttocsetter.c Fix FSF address 2012-11-03 20:44:48 +00:00
gsturi.c uri: Fix indention 2015-01-22 23:10:06 +02:00
gstutils.c utils: Fix unititialized variable compiler warning 2014-08-06 12:55:57 +02:00
gstvalue.c gstvalue: only unwrap string delimited with " 2015-03-27 17:18:23 +00:00
struct_arm.h tests: Remove other interface structs from the ABI tests too 2013-07-24 10:31:02 +02:00
struct_hppa.h tests: Remove other interface structs from the ABI tests too 2013-07-24 10:31:02 +02:00
struct_i386.h tests: Remove other interface structs from the ABI tests too 2013-07-24 10:31:02 +02:00
struct_i386w.h tests: Remove other interface structs from the ABI tests too 2013-07-24 10:31:02 +02:00
struct_ppc32.h tests: Remove other interface structs from the ABI tests too 2013-07-24 10:31:02 +02:00
struct_ppc64.h tests: Remove other interface structs from the ABI tests too 2013-07-24 10:31:02 +02:00
struct_sparc.h tests: Remove other interface structs from the ABI tests too 2013-07-24 10:31:02 +02:00
struct_x86_64.h tests: Remove other interface structs from the ABI tests too 2013-07-24 10:31:02 +02:00