Stefan Sauer
2ae763cc34
audiomixer: add a helper for buffer creation
...
This makes the test setup easier to read.
2017-07-14 08:09:25 +02:00
Stefan Sauer
14a9ba2fa4
audiomixer: use test helper once more
2017-07-13 22:02:17 +02:00
Stefan Sauer
6d53284450
audiomixer: more test cleanups
...
Port over the test helpers from the adder tests.
2017-07-10 21:08:09 +02:00
Stefan Sauer
ecf38a3ade
audiomixer: refactor test
...
Apply cleanups from the adder tests. Use a fixture for common code.
2017-07-10 20:16:56 +02:00
Olivier Crête
7108cd2fc8
tests: Make audiomixer test_clip verify the resulting timestamps too
2017-05-23 12:35:58 +02:00
Olivier Crête
e537f3576a
tests: audiointerleave: Remove drain with manual clock
...
Now that the queries go onto the queue, you may need to pull the crank
in order for them to be processed, making this test difficult.
2017-05-23 12:35:58 +02:00
Matthew Waters
57673e608e
aggregator: add simple support for caps handling
...
Modelled off the videoaggregator caps handling as that seems the most
mature aggregtor-using implementation that has caps handling there is.
https://bugzilla.gnome.org/show_bug.cgi?id=776931
2017-05-20 16:21:17 +02:00
Guillaume Desmottes
8d6d6bd2aa
tests: fix bus leak
...
gst_bus_remove_signal_watch() has to be called to release the ref
taken by gst_bus_add_signal_watch().
https://bugzilla.gnome.org/show_bug.cgi?id=768843
2016-07-18 12:41:12 +01:00
Guillaume Desmottes
f1f13de8d7
fix event leaks in tests
...
The events are supposed to be unreffed when finishing the test, not
reffed.
https://bugzilla.gnome.org/show_bug.cgi?id=766663
2016-06-21 10:52:47 +03:00
Guillaume Desmottes
ce53b64800
audiointerleave: fix message leaks by flushing the bus
...
https://bugzilla.gnome.org/show_bug.cgi?id=766663
2016-06-21 10:52:47 +03:00
Vineeth TM
de9478bdc1
audiointerleave: typecast bit-mask to guint64 to fix segmentation fault
...
While creating caps in audiointerleave tests, bitmask is being set as 0x9
This is resulting in segmentation fault. Fix the same by typecasting to guint64
https://bugzilla.gnome.org/show_bug.cgi?id=755840
2015-09-30 09:00:52 +01:00
hoonhee.lee
1a4f037bc1
tests: audiomixer: remove duplicated word in comment
...
https://bugzilla.gnome.org/show_bug.cgi?id=753915
2015-08-21 11:12:04 +03:00
Olivier Crête
47e374dbc8
tests: Add audiointerleave test to show that queuing works
...
This tests fails without the queuing patch because incoming buffers are
not delivered before they are needed.
https://bugzilla.gnome.org/show_bug.cgi?id=745768
2015-07-30 14:00:05 -04:00
Nirbheek Chauhan
74d7944cbb
audioaggregator: Sync pad values before aggregating
...
We need to sync the pad values before taking the aggregator and pad locks
otherwise the element will just deadlock if there's any property changes
scheduled using GstController since that involves taking the aggregator and pad
locks.
Also add a test for this.
https://bugzilla.gnome.org/show_bug.cgi?id=749574
2015-07-22 19:50:38 +01:00
Olivier Crête
b57388bce7
tests: audiointerleave: test not setting positions
...
Disable "channel-positions-from-input", but without actually giving
a position table, so every position should be NONE
2015-06-02 15:45:13 -04:00
Olivier Crête
28fc944c6e
tests: Fix indentation in audiointerleave test
2015-06-02 15:44:57 -04:00
Vincent Penquerc'h
609f6703f4
tests: fix type mismatch in varargs passing
...
A bitmask is 64 bits, but integer immediates are passed as int
in varargs, which happen to be 32 bit with high probability.
This triggered a valgrind jump-relies-on-uninitalized-value
report well away from the site, since it doesn't trigger on
stack accesses, and there must have been enough zeroes to stop
g_object_set at the right place.
2015-04-09 16:20:44 +01:00
Olivier Crête
5d78c5cca6
audiomixer: Allow downstream caps with a non-default channel-mask
...
Instead of failing, take the downstream channel mask if the channel
count is 1.
2015-04-01 20:32:41 -04:00
Olivier Crête
7975cefff0
audiointerleave: Add unit tests
...
Almost a copy of the "interleave" unit tests, improved to support
the thread on the src pad on GstAggregator.
https://bugzilla.gnome.org/show_bug.cgi?id=740236
2015-03-16 16:44:03 -04:00
Tim-Philipp Müller
91ff1a2957
tests: remove GST_DISABLE_PARSE guards from two tests that don't require it
2015-02-13 16:25:14 +00:00
Tim-Philipp Müller
e54829aa4f
tests: audiomixer: add unit test for proper segment.base handling
...
As adjusted by gst_pad_set_offset(), or when doing segment seeks
or looping for example. See previous audiomixer commit.
2015-02-05 15:23:04 +00:00
Olivier Crête
660ddd40c2
audiomixer: Make flush start/stop test non-racy
...
The flush stop could have happened between the source trying
to push the segment event and the buffer, this would cause a warning.
Prevent that by taking the source's stream lock while flushing.
https://bugzilla.gnome.org/show_bug.cgi?id=742684
2015-01-29 10:24:18 +01:00
Olivier Crête
0955a39a3d
audiomixer: Replace racy timeout based tested with drain query
...
Using the drain query, we can be certain that the buffer has done going
through the aggregator by taking the stream locks.
https://bugzilla.gnome.org/show_bug.cgi?id=742684
2015-01-29 10:24:18 +01:00
Olivier Crête
402c0d4c5c
audiomixer: Avoid race in caps negotiation
...
With the current audiomixer, the input caps need to be the same,
otherwise there is an unavoidable race in the caps negotiation. So
enforce that using capsfilters
https://bugzilla.gnome.org/show_bug.cgi?id=742684
2015-01-29 10:24:18 +01:00
Sebastian Dröge
8465c0915e
audiomixer: Change blocksize property to output-buffer-duration in time format
...
This makes the interface of audiomixer independent of the actual caps.
2014-12-23 11:45:50 +01:00
Sebastian Dröge
67ef96c82d
audiomixer: Add queues after the (live) sources in the unit test
2014-12-17 18:41:41 +01:00
Tim-Philipp Müller
7e75f21a41
tests: fix audiomixer test on big endian systems
2014-10-25 21:09:30 +01:00
Aurélien Zanelli
c5224553c4
test: use G_GSIZE_FORMAT in audiomixer test
...
https://bugzilla.gnome.org/show_bug.cgi?id=738227
2014-10-09 16:20:07 +03:00
Thibault Saunier
183f4b3227
audiomixer: Port to GstAggregator
...
https://bugzilla.gnome.org/show_bug.cgi?id=737183
Co-Authored by: Mathieu Duponchelle <mathieu.duponchelle@opencreed.com>
2014-10-06 18:57:28 +02:00
Sebastian Dröge
5fcc53e552
audiomixer: Add unit test for handling unaligned buffers
...
That is, buffers that start or end in the middle of an output block.
2013-11-07 14:12:17 +01:00
Sebastian Dröge
6e48dcfe47
audiomixer: Add test for the discont handling
2013-11-07 13:57:35 +01:00
Sebastian Dröge
73854f8c02
audiomixer: Refactor sync test to be more reusable
2013-11-07 13:55:32 +01:00
Sebastian Dröge
b78316dc06
audiomixer: Remove some racy-ness from the unit test
...
We might already be EOS when we start the mainloop, so only
set the pipeline to PLAYING from the main loop.
2013-11-07 13:48:06 +01:00
Sebastian Dröge
e368bee1a9
audiomixer: Add simply synchronization test
2013-11-06 15:35:45 +01:00
Sebastian Dröge
39459b2f30
audiomixer: Add new element based on adder that does synchronized audio mixing
2013-11-06 15:35:38 +01:00