Matthew Waters
af166b5b22
urisourcebin: add a statistics property for queueing
...
It contains the minimum/maximum/average byte and time levels of the
queues inside this urisourcebin
https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/issues/60
2018-11-07 15:10:05 +00:00
Sebastian Dröge
088b4c0c52
overlaycomposition: New element that allows applications to draw GstVideoOverlayComposition on a stream
...
https://bugzilla.gnome.org/show_bug.cgi?id=797234
2018-10-28 17:03:47 +00:00
George Kiagiadakis
a85a59e4a8
tests: audioconvert: test caps fixate with layout conversion
...
https://bugzilla.gnome.org/show_bug.cgi?id=797225
2018-10-05 15:40:13 +03:00
Justin Kim
4fa850e3e6
audiorate: accumulate offset by time diff
...
The fomula, 'offset = time / rate', is correct only if
the rate is never changed. When the rate is changed,
the offset should be re-calculated based on the previous
offset.
https://bugzilla.gnome.org/show_bug.cgi?id=791269
2018-07-19 18:19:19 -04:00
George Kiagiadakis
d57a572172
tests: audioconvert: add tests for planar audio
...
https://bugzilla.gnome.org/show_bug.cgi?id=705986
2018-07-11 16:26:13 +03:00
George Kiagiadakis
5c39510905
tests: audioconvert: add support for specifying the layout on tests
...
https://bugzilla.gnome.org/show_bug.cgi?id=705986
2018-07-11 16:26:13 +03:00
George Kiagiadakis
48fa908e15
tests: audiotestsrc: add unit test for non-interleaved audio output
...
https://bugzilla.gnome.org/show_bug.cgi?id=796739
2018-07-11 12:23:32 +03:00
Philippe Normand
8cfd85ec61
subparse: support for more than 32 unclosed markup tags
...
https://bugzilla.gnome.org/show_bug.cgi?id=796043
2018-05-12 17:05:06 +01:00
Sebastian Dröge
51c359dda6
videoaggregator: Rename ignore-eos pad property to repeat-after-eos
...
What it does is to repeat the last frame forever after EOS, it does not
literally ignore EOS.
2018-05-04 16:46:00 +02:00
Mathieu Duponchelle
d00e0b612d
appsink: Reuse sample object in pull_sample if possible
...
Simple optimization to reduce memory allocations.
https://bugzilla.gnome.org/show_bug.cgi?id=795145
2018-04-19 16:14:12 +02:00
Mathieu Duponchelle
225651e6c5
tests/audiomixer: fix caps leak
2018-04-13 01:07:21 +02:00
Tim-Philipp Müller
57516c5153
tests: audiomixer: remove unistd.h include
...
Not needed and breaks the build with MVSC.
2018-03-16 09:29:41 +00:00
Mathieu Duponchelle
10835e9919
audioaggregator: refactor conversion API
...
For the rationale, see:
https://bugzilla.gnome.org/show_bug.cgi?id=793917
Also test audiomixer conversion of current output buffer
2018-03-01 00:40:24 +01:00
Tim-Philipp Müller
fb77e4db30
tests: videoscale: simplify test and make it more robust
...
test_negotiation would occasionally time out, for unknown reasons.
Simplify the test setup and get rid of the main loop, busses, and
notify signals. With this I can no longer easily reproduce the
timeout. Fingers crossed.
2018-02-19 17:50:51 +00:00
Tim-Philipp Müller
8c5725c4ea
audiomixer, audiointerleave: add to build
...
https://bugzilla.gnome.org/show_bug.cgi?id=791218
2018-02-13 16:38:32 +00:00
Tim-Philipp Müller
ab758a9a39
audioaggregator, audiomixer, audiointerleave: move from -bad to -base
...
https://bugzilla.gnome.org/show_bug.cgi?id=791218
2018-02-13 15:56:49 +00:00
Matthew Waters
fbef9220d3
gl*bin: fix transfer semantics for the create-element signal
...
We can either receive an element that is floating or not and need to
accomodate that in the signal return values. Do so by removing the
floating flag.
https://bugzilla.gnome.org/show_bug.cgi?id=792597
2018-02-09 17:15:30 +11:00
Tim-Philipp Müller
ab87478bdc
tests: audioconvert: fix up check for lost channel positions
...
The caps field is channel-mask these days, so that code path
was never active.
2018-01-19 18:50:07 +00:00
Jimmy Ohn
4876fe04f5
tests: audioconvert: Fix memory leak in failure path
...
Don't set a bad example by leaking things, even if calling
g_error() will make the process abort.
https://bugzilla.gnome.org/show_bug.cgi?id=783418
2018-01-19 18:47:06 +00:00
Tim-Philipp Müller
3f184c3abc
tests: include config.h and don't include unix headers
...
In many cases the unistd.h includes weren't actually needed.
Don't build tests that need it on windows with MSVC
(multifdsink, multisocketsink, pipelines/tcp).
Preparation for making tests work on Windows with MSVC.
2018-01-16 18:14:59 +00:00
Mathieu Duponchelle
164b5a7f94
audioaggregator: implement input conversion
...
https://bugzilla.gnome.org/show_bug.cgi?id=786344
2017-12-19 23:39:37 +01:00
Tim-Philipp Müller
d85a7a9b2e
gl: hook up tests
...
Also move over simple gl launch line test.
2017-12-19 12:01:51 +00:00
Tim-Philipp Müller
cdbb261d9c
Move OpenGL library and plugin from -bad
...
Merge branch 'opengl-move'
https://bugzilla.gnome.org/show_bug.cgi?id=754094
2017-12-19 12:00:43 +00:00
Matthew Waters
fc8217ae8d
gl/tests: fix glimagesink element test on OSX
...
It was suffering a race starting up the thread that could cause the main
loop to quit before the main loop had started.
2017-12-09 19:32:25 +00:00
Guillaume Desmottes
f077d937ad
glimagesink: fix query leak in test
...
https://bugzilla.gnome.org/show_bug.cgi?id=766663
2017-12-09 19:32:20 +00:00
Guillaume Desmottes
a7f21fedc5
glimagesink: properly setup/teardown tests
...
tcase_add_checked_fixture() is suppose to call the setup and teardown
functions so the tests don't have to do it manually.
https://bugzilla.gnome.org/show_bug.cgi?id=766663
2017-12-09 19:32:20 +00:00
Edward Hervey
7e62a38569
checks: Ensure thread-safe libX11/GL when running tests
2017-12-09 19:32:07 +00:00
Thiago Santos
33b5cd5426
Fix a common typo: retreive -> retrieve
...
Seems to have been copy pasted around a few places
2017-12-09 19:32:03 +00:00
Julien Isorce
56c9d7f111
gl: add unit test that checks for glimagesink drain query handling
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=732694
2017-12-09 19:31:49 +00:00
Tim-Philipp Müller
b60cc0274c
appsrc: add support for pushing buffer lists
...
And samples that carry buffer lists.
https://bugzilla.gnome.org/show_bug.cgi?id=752363
2017-12-09 11:09:16 +00:00
Stefan Sauer
73381c8475
tests: comment and logging cleanups for audiomixer and aggregator
...
Remove some references to 'collectpads'. Logs pads through the object variants.
Add some more comments. Remove a left over comment.
2017-10-23 11:54:53 +02:00
Tim-Philipp Müller
cb6dd3eb8d
tests: appsink: fix compiler warning and typo in struct name
...
elements/appsink.c:624:3: warning: missing braces around initializer
with gcc 4.8.4
2017-10-07 14:20:54 +01:00
Julien Isorce
fc86194595
appsink: on drain wait for buffers to be consumed
...
So that an upstream element can claim all buffers to return to its buffer pool.
Added unit test 'test_query_drain'
make elements/appsink.check
https://bugzilla.gnome.org/show_bug.cgi?id=786739
2017-09-19 14:33:36 +01:00
Julien Isorce
7b1056b946
appsink: also clear preroll buffer in _pull_sample
...
If someone calls gst_app_sink_try_pull_sample they are
probably no longer interested in any preroll samples.
Useful if the user has not registered a preroll appsink callback.
Also added unit test 'test_do_not_care_preroll'
make elements/appsink.check
that fails without this patch.
https://bugzilla.gnome.org/show_bug.cgi?id=786740
2017-09-19 09:06:44 +01:00
Stefan Sauer
9c0a2a9ad4
tests: simplify audiomixer test
...
Use _link_many() and reuse a helper to reduce the test code.
2017-09-17 10:20:09 -07:00
Julien Isorce
68518acb53
appsink: unref preroll buffer upon pull
...
There is no reason for appsink to hang onto the preroll buffer.
If needed, the application can just keep a ref on this buffer
after calling gst_app_sink_try_pull_preroll.
Also added unit test 'test_pull_preroll'
make elements/appsink.check
https://bugzilla.gnome.org/show_bug.cgi?id=786740
2017-09-13 14:11:27 +01:00
Tim-Philipp Müller
925a4fe6a4
tests: playbin-complex: skip test that needs oggdemux if it's not available
...
https://bugzilla.gnome.org/show_bug.cgi?id=773145
2017-09-10 16:32:31 +01:00
Tim-Philipp Müller
afa2cbf39b
tests: appsrc: fix leaks in new unit test
2017-07-19 09:08:12 +01:00
Stefan Sauer
d176e8bd01
tests: audiomixer: set all properties at once
2017-07-15 21:28:38 +02:00
Stefan Sauer
1811f8f1d5
tests: adder: set all properties at once
2017-07-15 21:27:29 +02:00
Stefan Sauer
e309e88bd6
tests: adder: add helper to create buffers
...
Keeps repeated code out of the test and syncs it with the audiomixer test.
2017-07-15 19:45:02 +02:00
Stefan Sauer
db8482baaf
tests: audiomixer: use the buffer helper for other tests too
2017-07-15 19:34:15 +02:00
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
8133f478a9
adder: sync some fixes from the audiomixer test
2017-07-10 21:07:45 +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
Nicolas Dufresne
b39f5067e3
test-appsrc: Test state when blocked in caps Event
...
In GStreamer 1.12 and older, the GstBaseSrc live lock used to be held while
create() virtual function was called. As appsrc pushes serialized event in
that virtual function, we ended up with some deadlock while setting the
state to NULL. This test simulates this situation.
https://bugzilla.gnome.org/show_bug.cgi?id=783301
2017-07-03 21:12:03 -04:00
Mark Nauwelaerts
20705f01fc
textoverlay: ensure text buffer has writable metadata when modifying
2017-07-01 17:45:36 +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
Olivier Crête
cbafb022aa
tests: Test caps using query
...
Sending an event can accepted event if the caps were rejected
because the event could be queued and processed later.
Also send a drain query in the caps test to make sure that the
event has been processed.
https://bugzilla.gnome.org/show_bug.cgi?id=781673
2017-05-20 16:21:16 +02:00
Nicolas Dufresne
d81a6da702
rawvideoparse: Rename frame-stride in to frame-size
...
The term stride is confusing here, since the stride is always use
to signal the pixel row size of an image (including padding). Also
a frame may have a single stride, which adds to the confusion. This
patch uses frame-size, which simply indicate the frame size in the
case the images have some padding in between.
https://bugzilla.gnome.org/show_bug.cgi?id=780053
2017-03-24 13:50:06 -04:00
Nicolas Dufresne
2b4a173e89
rawvideoparse: Use GstValueArray for strides and offsets
...
This allow using those property through gst-launch-1.0. This type
gained a deserilizer recently. The syntax is: <val1, val2, ...>.
Note that we also use the type int instead of uint to avoid having
to cast when specifying the values. The deserilizers assume
int by default.
https://bugzilla.gnome.org/show_bug.cgi?id=780053
2017-03-24 13:50:06 -04:00
Stefan Sauer
d759eb46dc
adder: cleanup the tests
...
Take a first stab at cleaning up the tests. Extract common code. Make sure
we actually verify things.
2017-03-17 21:40:56 +01:00
Sebastian Dröge
38ec8f396f
rawparse: Move to gst-plugins-base
...
https://bugzilla.gnome.org/show_bug.cgi?id=774544
2017-02-25 14:48:40 +02:00
Sebastian Dröge
498ee680fe
Merge branch 'rawparse-moved-plugin'
2017-02-25 14:32:33 +02:00
Sebastian Dröge
4cde35553f
rawbaseparse: Drop incomplete frames at EOS
...
See https://bugzilla.gnome.org/show_bug.cgi?id=773666
This would ideally be solved in baseparse but that requires further
thought at this point, and in the meantime it would be good to have
rawbaseparse not assert on this but handle it gracefully instead.
2017-02-18 20:18:50 +02:00
Sebastian Dröge
5e2e111627
multifdsink: Make sure to use a 64 bit integer for the units-max property
2017-02-02 14:56:39 +02:00
Guillaume Desmottes
b8c78c87d2
encodebin: fix caps leak in test
...
https://bugzilla.gnome.org/show_bug.cgi?id=776797
2017-01-30 14:17:42 +02:00
Tim-Philipp Müller
d6c0e9072b
videorate: fix duration and position query handling
...
Duration query would return TRUE and duration=-1. This
worked in the unit test because the unit test implementation
was a bit broken.
Both queries need to access rate with a lock.
Fix broken duration query test as well. It relied on broken
behaviour by the videorate query handler, and also it was
implemented as a downstream query rather than an upstream
query. And we must return HANDLED from the probe so that the
query we intercept actually returns TRUE.
https://bugzilla.gnome.org/show_bug.cgi?id=699077
2017-01-24 01:04:39 +00:00
Thibault Saunier
03e263b92f
tests: Fix build
2016-12-19 15:20:35 -03:00
Thibault Saunier
c8ea302e57
encodebin: Fallback to other profile if we fail with one
...
In some case we might have EncodingProfile that will be defined
in a way that, for example if a Preset is not present, another
profile for that stream should be used.
A test is added showing the feature.
https://bugzilla.gnome.org/show_bug.cgi?id=776188
2016-12-19 10:13:23 -03:00
Sebastian Dröge
a9269d37c5
gst: Don't declare variables inside the for loop header
...
This is a C99 feature.
2016-12-13 22:39:01 +02:00
Sebastian Dröge
9795115564
gst: Don't declare variables inside the for loop header
...
This is a C99 feature.
2016-12-13 22:26:08 +02:00
Jan Alexander Steffens (heftig)
9bdf7ff6d0
multifdsink: Add a test involving a slow client
...
https://bugzilla.gnome.org/show_bug.cgi?id=774908
2016-11-29 19:13:00 +02:00
Edward Hervey
647b183adb
check/videorate: Avoid leaking extra buffers
2016-11-28 16:54:55 +01:00
Patricia Muscalu
f1562053fe
appsink: add support for buffer lists
...
https://bugzilla.gnome.org/show_bug.cgi?id=752363
2016-11-16 02:06:40 +11:00
Joris Valette
658ee6f0db
videorate: Add fixed rate property
...
https://bugzilla.gnome.org/show_bug.cgi?id=699077
2016-11-04 14:01:54 -03:00
Sebastian Dröge
af4de9cb42
gst: Fix more mentions of interlaced-mode to say interlace-mode
2016-11-04 16:26:50 +02:00
Edward Hervey
3cc9b2c490
check: Fix corrupted xml check files
...
By making sure each different videoscale check instance gets logged
into different output file
2016-11-03 17:18:05 +01:00
Sebastian Dröge
33f4b9cc8e
Revert "tests: rawvideoparse: add test for flow error handling"
...
This reverts commit 280b4ac2ff
.
https://bugzilla.gnome.org/show_bug.cgi?id=773666
2016-11-02 09:36:04 +02:00
Tim-Philipp Müller
f324c88d92
tests: rawvideoparse: add test for flow error handling
...
Also needs fixes in baseparse:
https://bugzilla.gnome.org/show_bug.cgi?id=773666
2016-11-01 20:34:37 +02:00
Stian Selnes
22ccb687fa
videotestsrc: Make snow deterministic
...
Deterministic generation of snow and smpte is important for tests so
that it's not affected by other videotestsrc elements in current or
possibly previous tests.
https://bugzilla.gnome.org/show_bug.cgi?id=773102
2016-11-01 20:05:18 +02:00
Jimmy Ohn
6335a074e2
opusdec: Fix memory leak in test code
...
gst_caps_to_string function returned allocated memory.
So, It should be free using g_free function.
https://bugzilla.gnome.org/show_bug.cgi?id=772500
2016-10-06 13:29:22 +03:00
Jimmy Ohn
fdefa9c1ad
videorate: Fix memory leakage in test code
...
gst_caps_to_string function returned allocated memory.
So, It should be free using g_free function.
https://bugzilla.gnome.org/show_bug.cgi?id=772501
2016-10-06 13:27:42 +03:00
Tim-Philipp Müller
7c0ec13942
tests: adder: disable racy flush_start_flush_stop test
...
It's been broken for years, and it's unlikely it will ever
be fixed for collectpads/adder now that there's audiomixer
which works fine. So let's disable it, since all it does
is that it creates noise that distracts from other failures.
https://bugzilla.gnome.org/show_bug.cgi?id=708891
2016-09-25 16:22:47 +01:00
Tim-Philipp Müller
3baa1d655c
tests: videoscale: split test into multiple ones
...
The videoscale test takes eternities to run, that's not
great. Split the test into multiple ones. That way they
can be run in parallel. Reduces time to run all tests in
-base from 29 secs to 12 secs when using meson/ninja.
2016-09-10 10:10:05 +01:00
Carlos Rafael Giani
232902369c
rawparse: Fix and extend unit tests
...
* Add caps change test to unit tests
* Cleanup leftover buffers after each unit test
* Add missing rawvideoparse entry in .gitignore
https://bugzilla.gnome.org/show_bug.cgi?id=769637
2016-08-18 10:53:58 +03:00
Carlos Rafael Giani
e5b70d384c
rawvideoparse: Compute plane offsets & strides if no custom ones are set
...
This is useful to ensure that the offsets and strides are computed if
only width, height, format etc. in the property config are set.
https://bugzilla.gnome.org/show_bug.cgi?id=769797
2016-08-18 09:21:16 +03:00
Carlos Rafael Giani
d508525119
rawparse: Add new raw audio and video parser elements
...
The new rawaudioparse and rawvideoparse elements are based on GstBaseParse
and completely replace audioparse and videoparse
https://bugzilla.gnome.org/show_bug.cgi?id=767011
2016-07-26 13:44:39 +03:00
Tim-Philipp Müller
ffa9f04bb2
tests: appsink: add minimal test for new pull with timeout functions
...
https://bugzilla.gnome.org/show_bug.cgi?id=768852
2016-07-18 17:26:26 +01: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
54e4551cd8
videoscale: fix bus leak in test
...
gst_bus_add_signal_watch() takes a ref on the bus which should be
released using gst_bus_remove_signal_watch().
https://bugzilla.gnome.org/show_bug.cgi?id=768718
2016-07-12 13:12:19 +03:00
Seungha Yang
50f74daa2f
appsrc: Remove trailing whitespace
...
https://bugzilla.gnome.org/show_bug.cgi?id=768510
2016-07-11 09:54:11 +03: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
8b0c9e9918
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
Mikhail Fludkov
27e7ca3389
opusdec: test for PLC timestamp when FEC is enabled.
2016-06-16 11:01:06 +01:00
Tim-Philipp Müller
ece702920f
tests: playbin: add test for new "element-setup" signal
...
https://bugzilla.gnome.org/show_bug.cgi?id=578933
2016-05-16 09:52:35 +01:00
Tim-Philipp Müller
9ed483e33b
tests: playsink: add minimal test for playsink element
...
Attempt to reproduce leak.
https://bugzilla.gnome.org/show_bug.cgi?id=755867
2016-05-14 16:02:16 +01:00
Guillaume Desmottes
1b2f9f2c3f
vorbistag: fix buffer leaks in tests
...
It internally uses gst_check_chain_func() so we
should call gst_check_drop_buffers() when tearing down tests to free
the buffers which have been exchanged through the pipeline.
https://bugzilla.gnome.org/show_bug.cgi?id=766226
2016-05-14 10:47:33 +03:00
Guillaume Desmottes
c6eb9df930
appsrc: fix buffer leaks in tests
...
It internally uses gst_check_chain_func() so we
should call gst_check_drop_buffers() when tearing down tests to free
the buffers which have been exchanged through the pipeline.
https://bugzilla.gnome.org/show_bug.cgi?id=766226
2016-05-14 10:47:33 +03:00
Guillaume Desmottes
e17299290a
audiorate: fix buffer leaks in tests
...
It internally uses gst_check_chain_func() so we
should call gst_check_drop_buffers() when tearing down tests to free
the buffers which have been exchanged through the pipeline.
https://bugzilla.gnome.org/show_bug.cgi?id=766226
2016-05-14 10:47:33 +03:00
Thiago Santos
60c765174f
opusdec: intersect with the filter before returning on getcaps
...
So upstream gets a smaller set to decide upon as it is what it requested
with the filter
https://bugzilla.gnome.org/show_bug.cgi?id=765684
2016-05-02 14:29:25 -03:00
Thiago Santos
7a5797d3a6
opusdec: improve getcaps to return all possible rates
...
The library is capable of converting to different rates.
Includes tests.
https://bugzilla.gnome.org/show_bug.cgi?id=765684
2016-05-02 14:29:25 -03:00
Thiago Santos
8375ed7763
tests: opus: remove apparently useless macro in tests
2016-05-02 14:23:54 -03:00
Thiago Santos
cf6a36721b
videoaggregator: properly handle interlace-mode restrictions
...
videoaggregator can't handle interlace-mode changes so it must
always restrict itself to the first interlacing mode it receives.
Tests included
https://bugzilla.gnome.org/show_bug.cgi?id=754495
2016-04-18 13:46:48 -03:00
Tim-Philipp Müller
778589cd5b
test: fix indentation
2016-03-30 22:41:54 +01:00