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
Jan Schmidt
75b7387f8b
parse: Fix transfer annotations for parse_launch functions.
...
gst_parse_launchv, gst_parse_launchv_full and gst_parse_launch_full
all return floating refs, the same as gst_parse_launch, which just
calls gst_parse_launch_full internally anyway.
Add a unit test assertion to check it's true.
Spotted by nemequ on IRC.
2013-10-12 16:20:50 +11:00
Reynaldo H. Verdejo Pinochet
94a3394edf
core: Fix max DEBUG_LEVEL incongruence on 5 vs 9
...
In the docs and the autocompletion logic the maximum
value jumped incongruently between 5 and 9.
2013-10-10 13:06:14 -07:00
Sebastian Dröge
4429ea53c4
caps: Skip test_subset_duplication until the bug is fixed
...
https://bugzilla.gnome.org/show_bug.cgi?id=709253
2013-10-10 13:19:09 +02:00
Sebastian Dröge
eb0d978e1e
caps: Add a testcase for subset checks on lists with duplicated items
...
https://bugzilla.gnome.org/show_bug.cgi?id=709253
2013-10-10 12:42:52 +02:00
Tim-Philipp Müller
10981f781c
tests: use tcase_skip_broken_test() to skip broken multiqueue test
...
So that we get a warning in the output that reminds us that
something needs to be fixed.
2013-10-02 12:30:54 +01:00
Edward Hervey
3537ad8ae1
check: Disable multiqueue test_output_order check
...
The check itself is racy.
(CK_FORK=no GST_CHECK=test_output_order make elements/multiqueue.forever).
The problem is indeed the test and not the actual element behaviour.
The objects to push are being pulled out of the single internal queues in the
right order and at the right time...
But between:
* the moment the global multiqueue lock is released (which was used to detect
if we should pop and push downstream the next buffer)
* and the moment it is received by the source pad (which does the check)
=> another single queue (like the unlinked pad) might pop and push a buffer
downstream
What should we do ? Putting a bigger margin of error (say 5 buffers) doesn't
help, it'll eventually fail.
I can't see how we can detect this reliably.
https://bugzilla.gnome.org/show_bug.cgi?id=708661
2013-10-02 11:26:09 +02:00
Thiago Santos
007c0e5fe1
value: fix caps serialization when there are caps inside caps
...
Wrap caps strings so that it can handle serialization and deserialization
of caps inside caps. Otherwise the values from the internal caps are parsed
as if they were from the upper one
https://bugzilla.gnome.org/show_bug.cgi?id=708772
2013-09-30 16:20:48 -03:00
Sebastian Dröge
8f0c9c7055
context: Add test for the context caching in GstBin
...
https://bugzilla.gnome.org/show_bug.cgi?id=708668
2013-09-24 13:11:47 +02:00
Wim Taymans
cba26c9ed9
tests: handle unscheduled entries correctly
...
Make the testclock return GST_CLOCK_UNSCHEDULED when an unscheduled entry is
used for gst_clock_wait() or gst_clock_wait_async().
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=708605
2013-09-23 11:47:14 +02:00
Sebastian Dröge
921ab73340
context: Fix unit test for GstContext changes
2013-09-18 21:42:42 +02:00
Sebastian Dröge
26e27417d7
tests/capsfilter: Fix memory leak and compare caps directly instead of strcmp()
2013-09-09 14:21:56 +02:00
Sebastian Rasmussen
7854e392dd
tests/capsfilter: Test caps-related queries and property
2013-09-09 14:18:39 +02:00
Alessandro Decina
924acf5e92
filesink: flush (discard data) on FLUSH_STOP
...
Reset the write position to 0 and truncate the file on FLUSH_STOP.
2013-08-27 08:00:09 +02:00
Alessandro Decina
b19d0518cb
tests: filesink: small refactoring
2013-08-27 07:58:29 +02:00
Olivier Crête
f90f3cde5f
buffer: Fix gst_buffer_memcmp() where the buffer is smaller than size
...
Also add unit tests for gst_buffer_memcmp
https://bugzilla.gnome.org/show_bug.cgi?id=706162
2013-08-20 14:41:27 -04:00
Sebastian Dröge
0b3bd4b954
tests: Remove other interface structs from the ABI tests too
2013-07-24 10:31:02 +02:00
Thiago Santos
6da1778dad
tests: Remove GstTagSetter from ABI checks
...
Interfaces can have new members added without breaking ABI, so
remove it from the check.
https://bugzilla.gnome.org/show_bug.cgi?id=623799
2013-07-24 10:31:02 +02:00
Olivier Crête
915f418cc4
adapter: Take account of the skip in gst_adapter_take_buffer_fast()
...
Include regression test
2013-07-16 15:38:11 -04:00
Olivier Crête
5920491597
adapter: Add function to return buffer composed of multiple memories
...
API: gst_adapter_take_fast()
2013-07-16 14:07:48 -04:00
Tim-Philipp Müller
2fbd6dcf24
benchmarks: ignore new benchmark binary
2013-07-16 14:48:19 +01:00
Olivier Crête
bbb26f8756
funnel: Re-push all sticky events when buffers come from a different pad
...
Don't special case segment/caps, just push all sticky events when they are
received on the currently active pad or when the active pad changes.
2013-07-01 20:45:42 -04:00
Olivier Crête
2ba75ddfef
tests: Remove funnel pad_alloc test
2013-07-01 20:18:58 -04:00
Jonas Holmberg
0ea8748c6b
check: Added gst_check_setup_events_with_stream_id()
...
Added a new function gst_check_setup_events_with_stream_id(), since
gst_check_setup_events() does not work with multiple pads.
https://bugzilla.gnome.org/show_bug.cgi?id=703377
2013-07-01 15:54:11 +02:00
Sebastian Dröge
4fc1ba1e60
buffer: Add unit test for map_range()
...
https://bugzilla.gnome.org/show_bug.cgi?id=702617
2013-06-19 10:45:45 +02:00
Wim Taymans
dab63cb6ed
tests: add stress test for buffers and pools
2013-06-17 11:12:51 +02:00
Wim Taymans
10099e1e70
check: fix position unit test
2013-05-30 07:03:40 +02:00
Sebastian Dröge
2253f8fa6f
pad: Fix memory leak in the unit test
2013-05-29 11:36:38 +02:00