gstreamer/tests/check/gst
Henry Wilkes 407e32588d caps: fix is_strictly_equal
Fixed gst_caps_is_strictly_equal() to take into account whether either of
the caps are ANY caps. Previously, two ANY caps could be considered not
strictly equal if one of them still contained some remnant *internal*
structure (this can happen if an ANY caps has emerged from an append or
merge operation). Also, an ANY caps with no remnant internal structures
was considered strictly equal to an EMPTY caps. Similarly, a non-ANY caps
was considered strictly equal to an ANY caps if its remnant internal
structures happened to match.

Also changed gst_caps_is_fixed to take into account that an ANY caps
should not be considered fixed even if it contains a single remnant
internal fixed structure. This affects gst_caps_is_equal(), which uses a
separate method if both caps are fixed. Previously, this meant that a
non-ANY fixed caps was considered equal to an ANY caps if it contained a
single matching remnant internal structure.

Added some tests for these two equality methods, which covers the above
examples, as well as asserts existing behaviour.

Fixes #496
2020-02-12 14:41:40 +00:00
..
capslist.h gstvalue: Add GstFlagSet type 2015-05-25 16:23:33 +10:00
gst.c tests: include config.h and don't include unix headers 2017-11-24 13:41:20 +01:00
gstabi.c tests: abi: fix abi test on 64-bit Windows 2018-01-11 12:04:31 +00:00
gstatomicqueue.c tests: include config.h and don't include unix headers 2017-11-24 13:41:20 +01:00
gstbin.c bin: Add method to find elements by factory name 2019-12-20 14:29:19 +01:00
gstbuffer.c tests: fix leak in buffer test_wrapped_bytes test 2019-03-06 09:04:54 +00:00
gstbufferlist.c bufferlist: Prevent gst_buffer_list_foreach() from modifying non-writeable lists 2018-07-09 09:45:45 +02:00
gstbufferpool.c bufferpool: Fix the buffer size reset code 2019-07-01 16:49:04 -04:00
gstbus.c tests: include config.h and don't include unix headers 2017-11-24 13:41:20 +01:00
gstcaps.c caps: fix is_strictly_equal 2020-02-12 14:41:40 +00:00
gstcapsfeatures.c tests: include config.h and don't include unix headers 2017-11-24 13:41:20 +01:00
gstchildproxy.c tests: include config.h and don't include unix headers 2017-11-24 13:41:20 +01:00
gstclock.c tests: include config.h and don't include unix headers 2017-11-24 13:41:20 +01:00
gstcontext.c tests: include config.h and don't include unix headers 2017-11-24 13:41:20 +01:00
gstcontroller.c documentation: fix a number of typos 2019-10-06 11:12:11 -04:00
gstcpp.cc tests: include config.h and don't include unix headers 2017-11-24 13:41:20 +01:00
gstdatetime.c datetime: Add constructor for timestamps in microseconds 2019-11-25 13:31:11 +01:00
gstdeinit.c Skip gst_deinit() if gstreamer was not initialized properly 2017-12-24 16:21:38 +01:00
gstdevice.c Update for g_type_class_add_private() deprecation in recent GLib 2018-06-24 12:49:14 +02:00
gstelement.c element: add gst_element_foreach_*pad() 2017-11-02 15:59:22 +00:00
gstelementfactory.c Don't use deprecated g_object_newv() 2017-04-08 09:49:59 +01:00
gstevent.c core: Avoid usage of deprecated API 2019-10-10 15:53:16 +02:00
gstghostpad.c documentation: fix a number of typos 2019-10-06 11:12:11 -04:00
gstindex.c tests: include config.h and don't include unix headers 2017-11-24 13:41:20 +01:00
gstinfo.c gstinfo: Add new API for getting debug log lines 2019-12-25 08:50:17 +05:30
gstiterator.c tests: include config.h and don't include unix headers 2017-11-24 13:41:20 +01:00
gstmemory.c Fix typos in comments and docs 2018-05-01 11:18:03 +01:00
gstmessage.c Fix typos in comments and docs 2018-05-01 11:18:03 +01:00
gstmeta.c gstbuffer: store meta in add order 2019-03-04 12:57:02 +00:00
gstminiobject.c tests: include config.h and don't include unix headers 2017-11-24 13:41:20 +01:00
gstobject.c tests: fix tests when compiling with glib_checks=disabled 2018-11-10 15:37:36 +00:00
gstpad.c gstpad: Probes that return HANDLED can reset the data info field 2019-05-16 15:13:48 +02:00
gstparamspecs.c tests: include config.h and don't include unix headers 2017-11-24 13:41:20 +01:00
gstpipeline.c pipeline: Call gst_task_cleanup_all() before checking reference counts after shutdown 2019-01-03 14:05:31 +00:00
gstplugin.c tests: include config.h and don't include unix headers 2017-11-24 13:41:20 +01:00
gstpoll.c tests: include config.h and don't include unix headers 2017-11-24 13:41:20 +01:00
gstpreset.c Source code typo fixes 2018-05-01 11:25:21 +01:00
gstprintf.c tests: include config.h and don't include unix headers 2017-11-24 13:41:20 +01:00
gstpromise.c tests: include config.h and don't include unix headers 2017-11-24 13:41:20 +01:00
gstprotection.c tests: include config.h and don't include unix headers 2017-11-24 13:41:20 +01:00
gstquery.c tests: include config.h and don't include unix headers 2017-11-24 13:41:20 +01:00
gstregistry.c Fix FSF address 2012-11-03 20:44:48 +00:00
gstsegment.c segment: Allow stop == -1 in gst_segment_to_running_time() and rate < 0 2018-10-29 04:03:56 +11:00
gststream.c tests: include config.h and don't include unix headers 2017-11-24 13:41:20 +01:00
gststructure.c tests: Add more int range fixation tests 2019-01-09 23:03:08 +00:00
gstsystemclock.c tests: remove system-dependent tests 2019-12-20 16:46:39 +00:00
gsttag.c tests: include config.h and don't include unix headers 2017-11-24 13:41:20 +01:00
gsttagsetter.c tests: include config.h and don't include unix headers 2017-11-24 13:41:20 +01:00
gsttask.c tests: include config.h and don't include unix headers 2017-11-24 13:41:20 +01:00
gsttoc.c tests: include config.h and don't include unix headers 2017-11-24 13:41:20 +01:00
gsttocsetter.c tests: include config.h and don't include unix headers 2017-11-24 13:41:20 +01:00
gsttracerrecord.c tests: include config.h and don't include unix headers 2017-11-24 13:41:20 +01:00
gsturi.c Run gst-indent through the files 2018-11-28 05:58:53 +02:00
gstutils.c utils: Export linear regression calculation as public function 2016-11-28 14:26:50 +02:00
gstvalue.c gstvalue: use value_nick for serialization 2019-09-17 01:09:05 +00:00
struct_arm.h meta: remove unnecessary padding for GstMetaInfo struct 2016-12-05 20:35:41 +00:00
struct_hppa.h meta: remove unnecessary padding for GstMetaInfo struct 2016-12-05 20:35:41 +00:00
struct_i386.h meta: remove unnecessary padding for GstMetaInfo struct 2016-12-05 20:35:41 +00:00
struct_i386w.h meta: remove unnecessary padding for GstMetaInfo struct 2016-12-05 20:35:41 +00:00
struct_ppc32.h meta: remove unnecessary padding for GstMetaInfo struct 2016-12-05 20:35:41 +00:00
struct_ppc64.h meta: remove unnecessary padding for GstMetaInfo struct 2016-12-05 20:35:41 +00:00
struct_sparc.h meta: remove unnecessary padding for GstMetaInfo struct 2016-12-05 20:35:41 +00:00
struct_x86_64.h meta: remove unnecessary padding for GstMetaInfo struct 2016-12-05 20:35:41 +00:00
struct_x86_64w.h tests: abi: fix abi test on 64-bit Windows 2018-01-11 12:04:31 +00:00