summaryrefslogtreecommitdiff
path: root/tests/check/gst
Commit message (Collapse)AuthorAgeFilesLines
* check/abi: Ignore GstXML* on arm when not presentEdward Hervey2011-06-011-0/+2
|
* caps: Fix subset check for equivalent lists and scalar valuesSebastian Dröge2011-05-301-0/+17
| | | | | | For example "{ 1 }" and "1" are not strictly equal but both are a subset of each other. Also add a unit test for this.
* caps: Optimize gst_caps_is_subset()Sebastian Dröge2011-05-271-0/+24
| | | | | | | | | | | | ..and as a result gst_caps_is_equal() and others. This now only checks if for every subset structure there is a superset structure in the superset caps. Previously we were subtracting one from another, creating completely new caps and then even simplified them. The new implemention now is about 1.27 times faster and doesn't break the -base unit tests are anything anymore.
* caps: Fix subset check in gst_caps_merge()Sebastian Dröge2011-05-271-0/+20
| | | | | | | Caps A are a subset of caps B even if caps B doesn't have all fields of caps A. Also add a unit test for this.
* miniobject: Add weak referencing functionalityJosé Alburquerque2011-05-141-0/+28
| | | | | | | | | | | | API: gst_mini_object_weak_ref() API: gst_mini_object_weak_unref() Add weak referencing functionality to GstMiniObject, which allows to get notifications when an mini object is destroyed but doesn't increase the real refcount. This is mostly useful for bindings. Fixes bug #609473.
* ghostpad: API: Expose gst_proxy_pad_get_internal()Sebastian Dröge2011-05-141-1/+9
| | | | | | | | | This allows to get the internal pad of ghostpads and proxypads without using gst_pad_iterate_internal_links() and is much more convenient. The internal pad of a ghostpad is the pad of the opposite direction that is used to link to the ghostpad target.
* caps: Merge structures when intersecting instead of appending themSebastian Dröge2011-05-141-0/+19
| | | | | | | | | | | | | This prevents adding duplicates over and over again to the resulting caps if they already describe the new intersection result. While this changes intersection from O(n*m) to O(n^2*m), it results in smaller caps, which in the end will decrease further processing times. For example in an audioconvert ! audioconvert ! audioconvert pipeline, when forwarding the downstream caps preference in basetransform (see e26da72de25a91c3eaad9f7c8b2f53ba888a0394) this results in 16 instead of 191 caps structures.
* tests: fix compiler warning in new miniobject testTim-Philipp Müller2011-05-041-3/+3
| | | | | gst/gstminiobject.c: In function ‘test_dup_null_mini_object’: gst/gstminiobject.c:459:7: warning: assignment from incompatible pointer type
* miniobject: Fix dup_mini_object function to handle NULL gvaluesThiago Santos2011-05-031-0/+18
| | | | | | | g_value_dup_object handles gvalues that contain NULL pointers, gst_value_dup_mini_object should do the same. https://bugzilla.gnome.org/show_bug.cgi?id=649195
* tests: clean up properly in the bin test_link_structure_change unit testTim-Philipp Müller2011-04-241-1/+3
| | | | | Don't forget to set the pipeline back to NULL state, which makes valgrind happy again.
* tests: add simple pipeline-in-pipeline unit testTim-Philipp Müller2011-04-211-0/+33
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=648297
* tests: Add test for greatest common divisorDavid Schleef2011-04-131-0/+23
|
* tests: fix unusued-but-assigned-variable warnings with gcc 4.6Tim-Philipp Müller2011-04-111-2/+0
|
* tests: disable test_many_bins unit test for nowTim-Philipp Müller2011-04-111-1/+4
| | | | | | It fails on the OSX bot (both with git and the last release), and it doesn't really test anything useful, so may just as well disable it for now.
* tests: allow more time for the test_many_bins pipeline to prerollTim-Philipp Müller2011-04-111-4/+8
| | | | | | | Hopefully makes this test work on the OSX build bot and other not-so-powerful machines. https://bugzilla.gnome.org/show_bug.cgi?id=646624
* utils: Fix uninitialized variable compiler warningsSebastian Dröge2011-04-081-0/+6
|
* checks: make tests_many_bins in bin unit test a bit fasterTim-Philipp Müller2011-04-061-2/+8
| | | | | Not doing expensive checks when linking elements makes things much faster.
* checks: add some queues to test_many_bins unit testTim-Philipp Müller2011-04-061-0/+10
| | | | To limit the number of calls in a row per thread.
* value: GstDate/GDate has a abbreviation nowSebastian Dröge2011-04-061-2/+2
|
* checks: add GstBin unit test that creates a lot of binsTim-Philipp Müller2011-04-051-0/+64
| | | | | | | | Currently fails (in normal circumstances) because we create a socket pair for each bin's bus and exhaust the number of available file descriptors. https://bugzilla.gnome.org/show_bug.cgi?id=646624
* gstabi: Add some new structures for x86-64Sebastian Dröge2011-03-311-66/+80
|
* tests: caps: Tests for the new caps intersection modeThiago Santos2011-03-241-0/+87
| | | | | | | Adds test cases for the caps 'first' intersect mode Adds another test for the 'zigzag' mode Fixes #617045
* bufferlist: Use a GQueue instead of a GListJonas Holmberg2011-03-111-1/+8
| | | | | | | | | | | | | Adding a buffer to the end of a GstBufferList is supposed to be a fast operation, but it was not since the iterator does not advance its nextpointer when adding buffers and GList does not have a tail pointer. Using a GQueue to store the buffers makes it easier to add buffers to the end of the list and this operation will now be much more efficient. Adding an entire GList of buffers using gst_buffer_list_iterator_add_list() will however have to iterate over the list being added to be able to update the tail pointer in the GQueue.
* test: add tests for new element_factory api.Stefan Kost2011-03-091-0/+44
|
* tests: add a unit test for gst_caps_new_simpleStefan Kost2011-03-081-0/+21
| | | | Add a test for the crash in bug #642271.
* tests: add test to create a factoryStefan Kost2011-03-081-0/+56
|
* tests: start a new test suite for element factoriesStefan Kost2011-03-083-44/+83
| | | | Move one test from gstelement suite.
* tests: refix the tests (missing #endif)Stefan Kost2011-02-241-0/+1
|
* tests: add abi check data for ARMStefan Kost2011-02-242-0/+77
|
* value: add (de)serialisation function for ucharTim-Philipp Müller2011-02-171-0/+46
| | | | | | | .. since we sadly have a plugin in -good that has a uchar property (cmmlenc) https://bugzilla.gnome.org/show_bug.cgi?id=642522
* check: fix a leak in the bus unit testWim Taymans2011-02-161-0/+1
|
* check: add progress message unit testWim Taymans2011-02-151-0/+24
|
* event: add QoS event typeWim Taymans2011-02-101-0/+20
| | | | | | | Add a parameter to the QoS event to specify the QoS event type. Update docs and add unit test. See #638891
* bus: honour any per-thread default main context set via ↵Tim-Philipp Müller2011-01-311-0/+43
| | | | | | | | | g_main_thread_push_thread_default() Makes gst_bus_add_watch(), gst_bus_add_watch_full(), gst_bus_add_signal_watch(), and gst_bus_add_signal_watch_full() convenience functions automatically pick up any non-default main contexts set for the current thread via g_main_thread_push_thread_default().
* tests: fix typoZhang Wanming2010-12-311-1/+1
| | | | Signed-off-by: Zhang Wanming <Wanming.Zhang@tieto.com>
* gstdatetime: Fix handling of timezonesThiago Santos2010-12-021-1/+12
| | | | | | | | Fix returning of timezones on systems with gdatetime to use floats on the math expression to avoid truncating the fractional part. Also adds a test for covering this case.
* datetime: Add _from_unix_epoch variantsThiago Santos2010-11-171-5/+53
| | | | | | | | | | | | Adds 2 variants for the gst_date_time_from_unix_epoch function, one for UTC and another for local time. API: gst_date_time_new_from_unix_epoch_utc API: gst_date_time_new_from_unix_epoch_local_time Fixes #653031 https://bugzilla.gnome.org/show_bug.cgi?id=635031
* datetime: Use seconds as doubleThiago Santos2010-10-132-11/+12
| | | | | | | | Use seconds as double to make API similar to glib's gdatetime. Also move timezone parameter to the first position, just like glib's. https://bugzilla.gnome.org/show_bug.cgi?id=628408
* gstdatetime: Fix string serializationThiago Santos2010-09-271-6/+4
| | | | Correctly serialize tzoffset as a gstvalue
* tests: rebuild one test using cppStefan Kost2010-09-222-0/+3
| | | | This aims to catch cpp issues in core. Add c++ boilerplate to configure.
* bufferlist: add function to add a list of buffersWim Taymans2010-09-171-0/+31
| | | | Add a function to add a list of buffers to the bufferlist.
* check: Avoid error: array subscript is above array boundsEdward Hervey2010-09-061-1/+1
| | | | | Could have come up with something better for my 2000th commit to GStreamer...
* gstquery: new buffering_ranges APIPhilippe Normand2010-09-031-0/+27
| | | | | | | | | Added a new query type to retrieve informations about the areas of the media currently buffered. See bug 623121. API: gst_query_add_buffering_range API: gst_query_get_n_buffering_ranges API: gst_query_parse_nth_buffering_range
* gstvalue: Fix memory leaks in the int64range testsSebastian Dröge2010-09-011-2/+7
|
* gstvalue: Add new GstInt64Range typePhilippe Normand2010-09-011-1/+508
| | | | | | | | | | | new GstInt64Range to store gint64 ranges. API: GST_TYPE_INT64_RANGE API: gst_value_set_int64_range API: gst_value_get_int64_range_min API: gst_value_get_int64_range_max Fixes bug #627826.
* tests: Remove checks for deprecated flow check macrosJan Schmidt2010-08-281-14/+0
| | | | | GST_FLOW_IS_FATAL() and GST_FLOW_IS_SUCCESS() are deprecated, so aren't available for the testsuite any more.
* tests: Add a couple of extra caps strings to testJan Schmidt2010-08-281-0/+5
|
* datetime: Fix memory leak in the unit test by unreffing GstDateTime instance ↵Sebastian Dröge2010-08-191-0/+2
| | | | after usage
* tests: add basic unit test for gst_pad_proxy_getcaps()Tim-Philipp Müller2010-08-051-0/+79
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=624203
* gstvalue: Adds tests for datetimeThiago Santos2010-07-261-5/+208
| | | | | | Adds tests for datetime fields in gstvalue tests Fixes #594504