Commit graph

436 commits

Author SHA1 Message Date
Sebastian Dröge 341d67ea94 playbin-compressed: Fix unit test 2013-05-09 18:02:57 +02:00
Sebastian Dröge fbe295f275 streamsynchronizer: Create element with gst_element_factory_make()
Otherwise plugin_init() is not called and initialization is missing.
2013-04-24 11:11:41 +02:00
Thibault Saunier fbe80a688d adder: Do not try to wait for flush_stop after receiving a segment event
+ Add a simple test
2013-04-21 16:11:41 +02:00
Jonas Holmberg 4ff3972aa7 tests: avoid assert in adder test if no audio sources work
The array of factories should not contain a NULL element at the end
since the number of arguments is determined via G_N_ELEMENTS and the
NULL will be used as an argument to gst_element_factory_make() if
the other sources in the list weren't usable.
2013-04-12 11:06:49 +01:00
Sebastian Dröge 3de4200f61 videoscale: Fix unit test after latest videoconvert changes 2013-04-09 14:04:47 +02:00
Sebastian Dröge 99551d806c videoconvert: Fix unit test after latest videoconvert changes 2013-04-09 13:59:34 +02:00
Tim-Philipp Müller 61bc909189 tests: fix some printf format compiler warnings 2013-03-31 17:37:36 +01:00
Edward Hervey b3d94bd0e4 encodebin: Add action signal to get pad for a given profile
This allows getting a pad for a specific encoding profile, which can
be useful when there are several stream profiles of the same type.

Also update the encodebin unit tests so that we check that the returned
pad has the right caps.

https://bugzilla.gnome.org/show_bug.cgi?id=689845
2013-03-31 12:02:05 +02:00
Stefan Sauer 8fe9f5a6ea adder: cleanup and reenable adder live source test
The test now passed a few rounds of nice -n19 make elements/adder.torture.
2013-03-29 11:49:47 +01:00
Tim-Philipp Müller 5127d31cce tests: fix appsrc unit test spam
spam 1 spam 2 spam 3 spam 4 spam 5
2013-03-13 01:00:45 +00:00
Nicola Murino 2a1dc7ca56 appsrc: fix deadlock setting pipeline in NULL state with block=true 2013-03-12 11:16:57 +01:00
Tim-Philipp Müller 63eda9ddc0 tests: fix leaks in adder unit test 2013-03-03 17:26:03 +00:00
Tim-Philipp Müller 85558575b5 tests: fix leaks in videorate unit test 2013-03-03 17:11:25 +00:00
Tim-Philipp Müller 155468d6ce tests: fix leak in audioresample unit test 2013-03-03 17:06:38 +00:00
Stefan Sauer 37bf14dafd tests: add a loop test for adder 2013-02-27 22:07:11 +01:00
Tim-Philipp Müller ed87e77baa tests: fix encodebin unit test on 32-bit systems
Fixes critical warning on x86:
g_object_set_valist: object class `GstOggMux' has no property named `testingoggmux'
2013-02-16 23:55:57 +00:00
Stefan Sauer cff9fccc69 adder: use the collect_pads_query func
We were setting the query-func on the sink-pad, which got overwritten when
adding the new pad to collect pads. Instead register our query-func with the
collect pads object. This fixes filter caps. Add a test for it.
2013-02-13 21:11:41 +01:00
Sebastian Dröge c7e93ad043 decodebin: Fix MP3 parser unit test
The MP3 parser required fields on its caps that it
didn't need and never got from (e.g.) typefind.
2013-02-13 11:25:02 +01:00
Tim-Philipp Müller 804959ac5f tests: don't use deprecated thread API in streamsynchronizer test 2013-02-09 16:50:05 +00:00
Stefan Sauer 8296b683ca volume: a return value of FALSE from the controller is not fatal
A return value of FALSE here indicates that we don't have control-values. In
0.10 we were returning the default value of the property. Now we don't fill an
array with defaults in the ControlBinding, but leave it up to the element to
handle this case.
2013-01-09 23:15:06 +01:00
Thibault Saunier e79f0e801e encodebing: Use the preset_name as the factory name and preset as the name of the preset
The naming is not perfect, but at least we can keep the exact same behaviour as
before.
2012-12-17 10:12:11 -03:00
Thibault Saunier 12aef5f47d tests: encodebin: Properly rename new preset test 2012-12-05 17:53:19 -03:00
Thibault Saunier 7358cba017 encodebin: Make use of the new preset_name when setting a preset
The behaviour is sensibly changed here. Instead of purely falling when a
preset is set on the #GstEncodingProfile, we now make sure that the
element that is plugged corresponds to the one specified as preset. Then,
if we have a preset_name, we use it, if it fails, we fail (we might rather
just keep working even without setting the element properties?)

 + Add tests that it behave correctly
2012-12-05 17:48:38 -03:00
Tim-Philipp Müller 0b172593fa tcp: print warning if someone tries to add clients in NULL state
And mention this in docs.

https://bugzilla.gnome.org/show_bug.cgi?id=689326
2012-12-02 12:54:17 +00:00
Tim-Philipp Müller 64c4fa2ca0 test: add test for playbin in combination with appsink
Make sure appsink works multiple times in a row.
Disable it though for now though.

https://bugzilla.gnome.org/show_bug.cgi?id=644989
2012-11-29 15:00:39 +00:00
Sebastian Dröge 9e8e3dfef4 videoscale: Fix unit test to ignore unsupported color formats 2012-11-27 10:30:39 +01:00
Tim-Philipp Müller 5f59b4f7ee Fix FSF address
https://bugzilla.gnome.org/show_bug.cgi?id=687520
2012-11-03 23:05:09 +00:00
Rasmus Rohde c286f8ffa2 audioconvert: Prefer output formats with the same depth or at least a higher depth
Enhance current code to prefer an exact match on sample depth if
possible. Also ignore GST_AUDIO_FORMAT_FLAG_UNPACK when checking
equality on the flags.
2012-11-01 14:29:43 +01:00
Tim-Philipp Müller 3bc58b6309 tests: skip adder test_live_seeking test while it's unreliable
Was an issue in 0.10 as well.

https://bugzilla.gnome.org/show_bug.cgi?id=617418
2012-10-06 15:35:11 +01:00
Tim-Philipp Müller 6842698f0d Purge all references to liboil
And remove unused ffmpegcolorspace tests in the process.

https://bugzilla.gnome.org/show_bug.cgi?id=673285
2012-09-29 11:47:52 +01:00
Mark Nauwelaerts c629a44162 replace gst_tag_list_free with gst_tag_list_unref 2012-09-14 17:53:21 +02:00
Mark Nauwelaerts f7c247b6a3 replace gst_element_class_set_details_simple with gst_element_class_set_metadata 2012-09-14 17:02:59 +02:00
Mark Nauwelaerts 536276eee1 tests: port to the new GLib thread API 2012-09-12 13:09:27 +02:00
Wim Taymans 35441abcde tests: fix unit test
Add support for I422_10
2012-09-12 10:12:25 +02:00
Tim-Philipp Müller 6b670d701c gdp: move gdp plugin to -bad
It needs to be reworked for 1.0
2012-09-11 01:33:11 +01:00
Tim-Philipp Müller 175bd55a66 tests: fix socket leaks in multisocketsink unit test 2012-09-09 00:18:16 +01:00
Tim-Philipp Müller fa454a6240 tests: fix audioresample unit test for big-endian systems 2012-09-07 01:39:38 +01:00
Tim-Philipp Müller b3771378c9 tests: fix audiorate unit test on big-endian systems 2012-09-07 01:26:50 +01:00
Mark Nauwelaerts 3dd7e1f3c4 tests: playbin: do not leak uri strings 2012-09-06 15:04:33 +02:00
Tim-Philipp Müller f4bd96d899 tests: make git ignore streamsynchronizer test binary 2012-09-03 18:57:00 +01:00
Tim-Philipp Müller 7c2e7b1a4f text/plain + text/x-pango-markup -> text/x-raw 2012-09-02 02:45:41 +01:00
Edward Hervey 47d132e651 check: Don't fail on GST_MESSAGE_WARNING
we will get some because some elements aren't present.

If the availability of those elements was critical, we will
eventually get an error message
2012-08-30 16:54:17 -07:00
Edward Hervey 784ca61ced check: Add streamsynchronizer unit test 2012-08-14 18:56:14 +02:00
Tim-Philipp Müller 5adc87c6bd tests: fix vorbisdec test
There won't be a tag messages on the bus, because tags
are now sent downstream for sinks to post on the bus,
and there's no sink involved here that would do that.
Secondly, the audio decoder base class only sends the
tags out once it has received some non-header data as
input, which is not something we're providing here.
2012-08-09 00:54:30 +01:00
Tim-Philipp Müller 910e497421 tests: remove custom tcase_skip_broken_test define which is now in core 2012-08-05 17:25:59 +01:00
Tim-Philipp Müller d4f582edd6 tests: silence FIXMEs when running videoscale unit test 2012-08-05 17:21:31 +01:00
Tim-Philipp Müller ec13933aaa tests: add adder test to check that caps are sent downstream 2012-08-04 22:25:08 +01:00
Tim-Philipp Müller 7892e1e22f videoscale: fix 4-tap scaling for 64-bpp formats
Fix invalid memory access caused by broken pointer arithmetic.

If we have a uint16_t *tmpbuf and add n * dest->stride to it, we
skip twice as much as we intended to because dest->stride is in
bytes and not in pixels. This made us write beyond the end of
our allocated temp buffer, and made the unit test crash.
2012-08-04 22:05:21 +01:00
Tim-Philipp Müller a0a9ebba43 tests: add videoconvert test that checks formats in template caps 2012-07-17 00:35:28 +01:00
Tim-Philipp Müller 94a9bf10f3 tests: no need to blacklist 64-bit formats in videoscale test any longer
Since we now use videoconvert, which supports these.

Unfortunately videoscale still crashes with 64-bit formats
right now because of a too small temp buffer, but I'm sure
someone is going to fix this real soon now, just like the
other unit tests.
2012-07-17 00:31:57 +01:00