Commit graph

298 commits

Author SHA1 Message Date
Tim-Philipp Müller
dca42d4767 tests: clean up rtp-payloading test a little
Feed data into the pipeline using appsrc instead of fdsrc and
a pipe. Store unsigned byte values in guint8 instead of char.
Getting rid of the capsfilter also helps to avoid 'format is
not fully specified' warnings when pushing "video/x-h264" data
into rtph264pay with fully specified h264 caps in the sink template.
2012-02-10 14:07:45 +00:00
Mark Nauwelaerts
507f936778 tests: mpegaudioparse: remove stray declaration 2012-02-09 22:13:11 +01:00
Vincent Penquerc'h
e9e0bebde3 tests: fix autodetect test not testing correctly for state change success
State change to PAUSED can be done async, so if this happens, we need
to wait for the change to be done (or failed).
2012-01-16 16:10:08 +00:00
Vincent Penquerc'h
4c2a2063cf tests: fix caps leak in videotestsrc test 2012-01-13 15:57:20 +00:00
Tim-Philipp Müller
12ff707854 tests: fix some leaks and remove files when done in qtmux test 2012-01-04 18:05:41 +00:00
Tim-Philipp Müller
56c1003f7a tests: make git ignore new unit test binary 2011-12-27 12:06:25 +00:00
Tim-Philipp Müller
b744ad03cc udpsrc: add unit test that sends 0-size packet
https://bugzilla.gnome.org/show_bug.cgi?id=666644
2011-12-27 11:49:10 +00:00
Tim-Philipp Müller
abd27e2caa tests: use atexit, g_atexit has been deprecated in glib master 2011-12-12 10:18:14 +00:00
Tim-Philipp Müller
72fc3d1bd9 tests: g_thread_init() is deprecated in glib master
It's not needed any longer.
2011-12-12 09:46:27 +00:00
Tim-Philipp Müller
60e53346af tests: fix up rgvolume test for basetransform event caching
Some tests assumed that tag events would always pushed through
immediately, which isn't the case any longer, so push a newsegment
event and an empty buffer first.
2011-12-10 13:05:07 +00:00
Alessandro Decina
5cc1c6c897 tests: fix g_mkdtemp presence check in multifile tests
g_mkdtemp was added in glib 2.30 even though the doc claims it was added in
2.26.
2011-12-01 13:25:45 +01:00
Alessandro Decina
ed98755241 multifilesink: add flag to cut after a force key unit event 2011-12-01 13:25:45 +01:00
Vincent Penquerc'h
c0e101e93f various: fix pad template leaks
https://bugzilla.gnome.org/show_bug.cgi?id=662664
2011-11-28 13:30:27 +00:00
Thiago Santos
3dc5a09a5c multifile: fix build of tests
Tests fail to build because g_mkdtemp is available from glib since
2.26.

This patch adds a condition around the redefinition of
g_mkdtemp on the tests to only build it if glib is older than
2.26.
2011-11-24 14:18:44 -03:00
Tim-Philipp Müller
38c9fefa01 tests: add basic unit test for matroskaparse 2011-11-23 01:00:17 +00:00
Thiago Santos
a4154e9db2 tests: qtmux: Refactor bitrate check test
Refactor bitrate check test to accomodate multiple tests
for bitrate
2011-09-30 13:05:24 -03:00
Thiago Santos
e58b0466ec tests: qtmux: add tests for bitrate average calculation
Adds tests to make sure qtmux/mp4mux sets average bitrate
correctly
2011-09-30 13:05:20 -03:00
Tim-Philipp Müller
b6b072e948 tests: add unit test to make sure encodebin picks mp4mux for variant=iso
https://bugzilla.gnome.org/show_bug.cgi?id=651496
2011-09-20 12:55:31 +01:00
Thiago Santos
c78048bc25 tests: flvmux: Fix flvmux's tests after fix for request pads handling
Now that flvmux doesn't release its request pads on PAUSED->READY the
test doesn't need to re-request them for every reuse test start.
2011-09-12 09:21:47 -03:00
Sebastian Dröge
8f1f6d1a57 cmml: Use complete cmml caps in the unit test 2011-09-07 14:30:27 +02:00
Sebastian Dröge
0fd1397921 qtmux: Use complete MPEG caps in the unit test 2011-09-07 14:30:27 +02:00
Mark Nauwelaerts
077a306054 tests: parsers: provide more real data when testing draining of garbage 2011-09-05 15:51:53 +02:00
Arun Raghavan
96972eb462 ac3parse: Add support for IEC 61937 alignment
When pushing out buffers over S/PDIF or HDMI, IEC 61937 payloading
requires each buffer to contain 6 blocks from each substream. This adds
code to collect all the frames needed to meet this requirement before
pushing out a buffer.

https://bugzilla.gnome.org/show_bug.cgi?id=650313
2011-07-26 10:40:00 +05:30
Alessandro Decina
072bd74cc4 multifilesink: add max-files property
Add max-files property to limit the number of files saved on disk.

API: multifilesink::max-files
2011-07-18 10:21:41 +02:00
Tim-Philipp Müller
c6abc45d27 tests: add index-setting test for baseparse/flacparse
https://bugzilla.gnome.org/show_bug.cgi?id=646811
2011-04-19 14:20:37 +01:00
Sebastian Dröge
dd2ff5a902 imagefreeze: Remove bus GSource to prevent a valgrind warning 2011-04-18 11:10:01 +02:00
Robert Swain
4893678fd1 tests: Address unused but set variables
GCC 4.6.x spits warnings about such usage of variables.
2011-04-16 13:10:58 +01:00
Mark Nauwelaerts
5f051fd996 tests: qtmux: test various dts-methods 2011-04-15 12:49:14 +02:00
Tim-Philipp Müller
025417f124 qtmux: add variant-less video/quicktime to source pad template caps
This is needed for automatic transcoding using encodebin. Our typefinder
does not always add a variant to the found caps, and encodebin needs
an *exact* match to the caps on the source pad template, so we need
to add the variant-less video/quicktime caps to the template as well
for encodebin to be able to find it. Add unit test for this as well.

https://bugzilla.gnome.org/show_bug.cgi?id=642879
2011-04-13 15:21:59 +01:00
Tim-Philipp Müller
9648747ce9 tests: ignore new qtmux-related test binaries 2011-04-13 12:45:27 +01:00
Thiago Santos
3d2280beb9 test: qtmux: Tests qtmux reuse
Forces the use of qtmux after it has been put to PLAYING and back
to NULL once

https://bugzilla.gnome.org/show_bug.cgi?id=639338
2011-04-12 20:32:21 +01:00
Mark Nauwelaerts
197c3e8a7d tests: qtmux: also unit test fragmented file cases 2011-04-12 20:32:20 +01:00
Benjamin Otte
c4161b3c33 Add -Wwrite-strings
and fix its warnings
2011-04-12 20:32:17 +01:00
Benjamin Otte
62be91708f Add -Wmissing-declarations -Wmissing-prototypes to configure flags
And fix all warnings
2011-04-12 20:32:17 +01:00
Mark Nauwelaerts
2196cf6b49 tests/check/: Add unit test for qtmux.
Original commit message from CVS:
* tests/check/Makefile.am:
* tests/check/elements/qtmux.c: (setup_src_pad),
(teardown_src_pad), (setup_qtmux), (cleanup_qtmux),
(check_qtmux_pad), (GST_START_TEST), (qtmux_suite), (main):
Add unit test for qtmux.
2011-04-12 20:32:09 +01:00
Tim-Philipp Müller
6be6fe5db8 tests: hook up audioparser unit tests 2011-04-08 18:07:18 +01:00
David Schleef
6c9a7f6323 tests: fix baseparse test 2011-04-08 18:07:16 +01:00
Sebastian Dröge
46ea4eaa1f flacparse: Adjust unit tests to new flacparse behaviour
Garbage after frames is now included in the frames because flacparse
has no easy way to detect the real end of a frame. Decoders are
expected to everything after the frame because only decoding the
bitstream will reveal the real end of the frame.

Fixes bug #631814.
2011-04-08 18:07:11 +01:00
Mark Nauwelaerts
fbbc09e47d audioparsers: add flacparse unit test
... and tweak parser test helper in the process.
2011-04-08 18:07:09 +01:00
Mark Nauwelaerts
f8ec616d9d audioparsers: add ac3parse and mpegaudioparse unit test 2011-04-08 18:07:08 +01:00
Mark Nauwelaerts
edb495646d audioparsers: refactor existing unit tests using common helper 2011-04-08 18:07:08 +01:00
Edward Hervey
6bd1be78bf check: Don't re-declare 'GList *buffers' in the tests
It's an external which lives in gstcheck.c. Redeclaring it makes some
compilers/architectures think the 'buffers' in the individual tests are
a different symbol... and therefore we end up comparing holodecks with
oranges.
2011-04-08 18:07:06 +01:00
Benjamin Otte
ead9bd6b62 Add -Wold-style-definition
and fix the warnings
2011-04-08 18:07:04 +01:00
Benjamin Otte
50356ade08 Add -Wmissing-declarations -Wmissing-prototypes to configure flags
And fix all warnings
2011-04-08 18:07:04 +01:00
Thiago Santos
13c76e3bc3 Rename aac's stream-format 'none' to 'raw'
Renames aac's stream-format from previous commits from none to
raw
2011-04-08 18:07:04 +01:00
Thiago Santos
ed0c1564ca aacparse: update tests to stream-format changes
Updates aacparse unit tests to check for stream-format
correctness as well.
2011-04-08 18:07:04 +01:00
Tim-Philipp Müller
fc09fe78af aacparse: set channels and rate on output caps, and keep codec_data
Create output caps from input caps, so we maintain any fields we
might get on the input caps, such as codec_data or rate and channels.
Set channels and rate on the output caps if we don't have input caps
or they don't contain such fields. We do this partly because we can,
but also because some muxers need this information. Tagreadbin will
also be happy about this.
2011-04-08 18:06:57 +01:00
Stefan Kost
c3faaa2daa tests/check/: Add unit tests for new parsers.
Original commit message from CVS:
* tests/check/Makefile.am:
* tests/check/elements/aacparse.c:
* tests/check/elements/amrparse.c:
Add unit tests for new parsers.
2011-04-08 18:06:56 +01:00
Sebastian Dröge
9f256d81db rtpbin: Don't try to request the same request pad twice 2011-03-29 16:34:53 +02:00
Tim-Philipp Müller
2a8103553d tests: enable more formats in videofilter unit test, check more resolutions 2011-03-15 20:23:25 +00:00