Nicolas Dufresne
64aa64cb80
value: Add support for GstAllocationParams comparision
...
This is useful to compare buffer pool configuaration.
https://bugzilla.gnome.org/show_bug.cgi?id=728268
2014-05-08 13:08:21 -04:00
Nicolas Dufresne
00614e2c2b
value: Add support for GObject comparising in structures
...
This is useful to allow comparing pool configuration where a GstAllocator
is set.
https://bugzilla.gnome.org/show_bug.cgi?id=728268
2014-05-08 13:08:21 -04:00
Tim-Philipp Müller
4a6ab37591
sparsefile: sprinkle G_BEGIN_DECLS / G_END_DECLS
...
for c++, and remove outdated comment, and add
new unit test to .gitignore.
2014-05-08 16:27:21 +01:00
Wim Taymans
45855e2795
Add new downloadbuffer element
...
See https://bugzilla.gnome.org/show_bug.cgi?id=680183
2014-05-08 15:53:45 +02:00
Sebastian Dröge
19eca381f5
basesink: Add test for checking that EOS always comes after the state change to PLAYING
...
https://bugzilla.gnome.org/show_bug.cgi?id=727949
2014-05-01 20:11:04 +02:00
Srimanta Panda
094fdfee7e
funnel: Handle end of stream event on sink pad
...
Handle end of stream events on sink pad. Check all the sink pad
has received eos before forwarding to source pad.
Fixes : https://bugzilla.gnome.org/show_bug.cgi?id=727945
2014-04-17 19:14:34 -04:00
Sebastian Dröge
3e340ea655
collectpads: Fix memory leak in unit test
2014-04-14 21:35:52 +02:00
Tim-Philipp Müller
ed9d0381b2
testclock: replace newly-added GstTestClockIDList structure with a simple GList
...
Keep it simple. Likely also makes things easier for bindings,
and efficiency clearly has not been a consideration given how
the existing code handled these lists.
2014-04-12 15:33:50 +01:00
Havard Graff
3892cc4c2d
testclock: add support for waiting and releasing multiple GstClockIDs
...
In order to be deterministic, multiple waiting GstClockIDs needs to be
released at the same time, or else one can get into the situation that
the one being released first can add itself back again before the next
one waiting is released.
Test added for new API and old tests rewritten to comply.
2014-04-12 15:33:31 +01:00
Sebastian Dröge
414f21d160
multiqueue: And actually run the other tests again
2014-04-09 16:01:09 +02:00
Sebastian Dröge
914012de70
multiqueue: Add test for checking if pads are waked up when limits are changed
2014-04-09 15:57:31 +02:00
Tim-Philipp Müller
4ab09ee869
tests: make netclientclock test faster and less flaky
2014-03-23 12:55:22 +00:00
Sebastian Dröge
888cf0656d
fakesink: Update positions we're checking for after a state is lost
2014-03-18 18:12:16 +01:00
Jan Schmidt
4d7d3a1c02
Fix extended message handling with gst_bus_pop_timed_filtered()
...
Make sure extended message types don't get accidentally matched
when not asked for in the mask
2014-03-17 06:29:27 +11:00
Tim-Philipp Müller
1b7c5c4d64
tests: add test for extended message types and gst_bus_timed_pop_filtered
2014-03-16 14:38:07 +00:00
Thiago Santos
22258782d8
tests: multiqueue: fix eos count on test for not-linked case
...
From the test case:
/* This test creates a multiqueue with 2 streams. One receives
* a constant flow of buffers, the other only gets one buffer, and then
* new-segment events, and returns not-linked. The multiqueue should not fill.
*/
If one of the queues goes EOS and the other returns NOT_LINKED the stream
can be considerered EOS as a NOT_LINKED means that one of the branches has no
sink downstream that will block the EOS message posting.
https://bugzilla.gnome.org/show_bug.cgi?id=725917
2014-03-15 09:54:49 -03:00
Wim Taymans
7691150c45
bufferpool: only release buffers with writable memory
...
Check if the memory is writable before releasing the buffer into the
pool again.
Add unit test for this scenario.
2014-02-27 16:40:34 +01:00
Wim Taymans
f22d8f08e0
bufferpool: Use TAG_MEMORY to check memory before releasing
...
Tag allocated buffers with TAG_MEMORY. When they are released later,
only add them back to the pool if the tag is still there and the memory
has not been changed, otherwise throw the buffer away.
Add unit test to check various scenarios.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=724481
2014-02-27 15:43:13 +01:00
Sebastian Dröge
ab9fdf13a0
structure: Add getters for int64 and uint64 values
2014-02-25 15:41:45 +01:00
Thiago Santos
2c2e55789d
basesrc: Do not send eos when seeking after last buffer
...
If pushing the last buffer triggers a seek from downstream, do not
go into EOS if a new segment was requested.
Contains unit test
https://bugzilla.gnome.org/show_bug.cgi?id=724757
2014-02-24 10:37:57 -03:00
Tim-Philipp Müller
a6656b04de
tests: fix leak in baseparse test
...
Or rather make it not show up any more by moving
it from 'definitely lost' into 'possibly lost'.
2014-02-09 00:25:49 +00:00
Tim-Philipp Müller
7644c8a3c5
tests: fix leak in systemclock test
2014-02-08 23:39:03 +00:00
Edward Hervey
7b014d67a7
check: Remove a minor leak in unit test
...
Makes valgrind happy
2014-02-05 10:11:43 +01:00
Matthieu Bouron
97103c90b0
tests: add caps features unit tests
...
https://bugzilla.gnome.org/show_bug.cgi?id=723236
2014-02-04 18:47:23 +01:00
Stefan Sauer
c42780db66
bufferpool: more tests and small doc fixes
2014-01-31 08:36:55 +01:00
Stefan Sauer
f9a5a24211
bufferpool: add a new testsuite or the pool
...
Start with some basic tests.
2014-01-30 12:43:45 +01:00
Thiago Santos
5d62ead83c
tests: capsfilter: add test for pending_events pushing
...
make sure that pending events are pushed when caps are already
set when a buffer is received
2014-01-29 14:59:43 -03:00
Thiago Santos
fdfc6dc983
basesrc: preserve seqnum of eos events sent by the user
...
Store the eos event seqnum and use it when creating the
new eos event to be pushed downstream. To know if the eos
was caused by the eos events received on send_event, a
'forced_eos' flag is used to use the correct seqnum on
the event pushed downstream.
Useful if the application wants to check if the EOS message
was generated from its own pushed EOS or from another source
(stream really finished).
Also adds a test for this
https://bugzilla.gnome.org/show_bug.cgi?id=722791
2014-01-24 09:31:44 -03:00
Fabian Kirsch
702e5d11c3
parse: Additional tests for parser
...
https://bugzilla.gnome.org/show_bug.cgi?id=710034
2014-01-20 16:18:40 +01:00
Sebastian Dröge
af84535569
iterator: Add unit tests for filtering, recursive filtering and locking
...
https://bugzilla.gnome.org/show_bug.cgi?id=711138
2014-01-18 14:48:54 +01:00
Sebastian Dröge
96f454d0ba
tee: Add unit test for requesting pad names
2014-01-14 16:47:38 +01:00
Sebastian Dröge
c47f0f2ec5
parse-launch: Add some more failing pipelines
...
Also convert some comments about valgrind warnings to
FIXME comments. These were leaking since some time already.
2014-01-14 13:46:24 +01:00
Fabian Kirsch
2b33d33185
parse: Refactor grammar, make it more consistent and fix conflicts
...
https://bugzilla.gnome.org/show_bug.cgi?id=710034
2014-01-14 13:46:22 +01:00
Thiago Santos
4f9d382a0a
tests: baseparse: add test for reverse playback on passthrough
...
Baseparse stores buffers for reverse playback to push on the next
DISCONT, the issue was that it wouldn't ever check for a discont
on passthrough mode as it skips all real parsing. This test
was create to verify this issue and prevent it from happening again
https://bugzilla.gnome.org/show_bug.cgi?id=721941
2014-01-13 08:43:28 -03:00
Thiago Santos
aad8123ff9
tests: baseparse: add basic test for baseparse
...
Just a small test to check that basic playback works
2014-01-13 08:43:28 -03:00
Wim Taymans
6c95262447
tests: improve check, also check stream-time
2014-01-08 15:47:10 +01:00
Wim Taymans
b5e4e24e75
tests: add unit test for segment _offset_running_time()
...
Add a unit test to check that positive and negative offsets are applied
correctly in various cases.
2014-01-08 15:31:28 +01:00
Sebastian Dröge
9e125e7bab
pad: Add unit test for adding/removing blocking probes while a pad is blocked
...
And make sure that these new probes are actually called if they should
instead of silently blocking the pad forever.
https://bugzilla.gnome.org/show_bug.cgi?id=721289
2014-01-02 13:34:52 +01:00
Tim-Philipp Müller
430df345c4
tests: add unit test for bitreader, bytereader and bytewriter with no inlining used
2013-12-14 21:20:45 +00:00
Edward Hervey
3ea6b04c10
gstvalue: Fix comparision of double range
...
Checking twice the lower bound is great (you never know, it might change
between the two calls by someone using emacs butterfly-mode), but it's a bit
more useful to check the higher bound are also identical.
Detected by Coverity
2013-12-10 18:01:52 -05:00
Tim-Philipp Müller
9a62f007fc
tests: add unit test for registering the same category twice
2013-12-07 19:04:16 +00:00
Sebastian Rasmussen
e8ecf3c407
Fix some typos in code comments and debug messages
...
https://bugzilla.gnome.org/show_bug.cgi?id=720029
2013-12-07 17:09:39 +00:00
Tim-Philipp Müller
47679cf2f8
tests: fix GstBus unit test with latest GLib
...
g_source_remove() works on the default main context, and
we're doing things with a custom context. Fixes warning
with newer GLib versions.
2013-11-18 15:28:32 +00:00
Sebastian Dröge
5286479467
value: Lists with all equal elements are equal to a single value
...
Otherwise caps containing f={X, X} are not compatible with f=X
https://bugzilla.gnome.org/show_bug.cgi?id=709253
2013-11-13 19:57:23 +01:00
Alessandro Decina
f52b5ddcd2
tests: collectpads: add flushing seek tests
...
https://bugzilla.gnome.org/show_bug.cgi?id=708416
2013-11-11 16:50:42 +01:00
Alessandro Decina
d063623851
tests: collectpads: tweak stub _collect to push all buffers
...
https://bugzilla.gnome.org/show_bug.cgi?id=708416
2013-11-11 16:50:42 +01:00
Alessandro Decina
01b4565a9a
tests: collectpads: update my email address
...
https://bugzilla.gnome.org/show_bug.cgi?id=708416
2013-11-11 16:50:42 +01:00
Wim Taymans
02b64ee03b
systemclock: Add gst_system_clock_set_default
...
Used for setting the default system clock that is obtained through
gst_system_clock_obtain(), which is sometimes needed for unit
testing.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=711269
2013-11-11 12:25:14 +01:00
Olivier Crête
789eda5a37
parse: Make the FATAL_ERRORS flag also work without a GError
...
Also add a unit tests
2013-11-01 17:02:25 +00:00
Sebastian Rasmussen
1479aba1cf
tests/filesrc: Set location in wrong state
...
Also remove incorrect comment about code possibly not being reachable
that is now exercised by the filesrc unit test.
https://bugzilla.gnome.org/show_bug.cgi?id=709831
2013-10-13 12:18:57 -04:00