Commit graph

307 commits

Author SHA1 Message Date
Jan Schmidt
fa15557bf5 check: Remove assertion that breaks check again git master
Remove the assertion that the sender of the tags message is the
element until we decide whether that's going to be true or not.
2009-05-16 01:21:34 +01:00
Jan Schmidt
bf58596e16 ignores: Ignore the flacdec check binary 2009-05-16 00:18:34 +01:00
Jan Schmidt
135e61f753 Moved 'y4menc' from -bad to -good 2009-05-16 00:16:31 +01:00
Tim-Philipp Müller
c014c4a621 checks: move files required by unit tests into tests/files and make sure they're disted
Move unit test data into the directory where it belongs and make in particular
the flacdec unit test cd into the directory with the test files instead of making
assumptions about the current working directory in that unit test. As a side effect
of movng those files, there's only one EXTRA_DIST in tests/check/Makefile.am now,
which is likely to work better than having two. Hopefully fixes #582753.
2009-05-15 17:17:20 +01:00
Tim-Philipp Müller
0c4b6ee286 checks: fix flacdec unit tests on big-endian machines and under valgrind
Flacdec outputs 16-bit samples, so let's check if the value of the first
sample is what we expect rather than just the first byte, which may be
different from what we expect depending on the host's endianness. Fixes
the flacdec unit tests on PPC. Also fix a bunch of leaks in the unit
tests to make valgrind happy. Fixes #582420.
2009-05-13 09:24:26 +01:00
Sebastian Dröge
633c940362 rganalysis: Remove invalid unit test
The test creates buffers with non-silence, sets the GAP
flag on it and expects rganalysis to ignore the content and assume silence.

That's not the way how GAP buffers should be used, if the GAP flag is set
elements *can* assume that they only contain silence but they're not *required*
to assume that. The GAP flag must only be set on silence buffers.

Fixes bug #582252.
2009-05-12 11:18:03 +02:00
Jan Schmidt
fd1580cc57 checks: dist id3-577468-unsynced-tag.tag test file 2009-05-11 23:13:20 +01:00
Sebastian Dröge
e0f4244336 gdkpixbuf: Use the libs and cflags of gdk pixbuf instead of gtk
This fixes the build if gdk-pixbuf is found but gtk isn't
2009-05-11 10:15:00 +02:00
Jan Schmidt
a32be6f170 id3v2mux: Make the test failure slightly more informative 2009-05-06 14:24:35 +01:00
Tim-Philipp Müller
356e863c9c tests: don't build examples if --disable-examples was passed to configure 2009-05-05 13:23:45 +01:00
Tim-Philipp Müller
0ff1b18cbb id3demux: add unit test file for unsynced id3 tags 2009-04-24 02:11:28 +01:00
Jan Schmidt
06a4b80918 check: Check whether threads are already initialised before g_thread_init() 2009-04-18 14:05:16 +01:00
Thomas Vander Stichele
5f802dad4e add debug and an assert 2009-04-04 15:14:31 +02:00
Thomas Vander Stichele
be94a147ba add a test to check that we get all decoded bytes
from a 10-buffer audiotestsrc flac, in the case of:
 - a full decode
 - a decode of a seek for the full file
 - a decode of a seek for a small part, smaller than the first buffer

The test fails because flacdec drops the first outgoing buffer on a seek
2009-04-04 15:14:31 +02:00
Jonathan Matthew
9b7c9208c3 id3v2mux: write RVA2 frames containing peak/gain volume data 2009-04-02 00:20:02 +01:00
Tim-Philipp Müller
c885b3d027 .gitignore: ignore more 2009-03-20 01:06:14 +00:00
Peter Kjellerstedt
c83635d42c check: gst-plugins-good.supp needs to be distributed. 2009-03-04 16:15:05 +01:00
Sebastian Dröge
08123cc318 Fix audioecho unit test on 32 bit systems
Cast the new value for the "delay" property to GstClockTime.
Integers without type are passed to vararg functions with
an integer type that can hold a pointer.
2009-02-03 17:12:46 +01:00
Wim Taymans
fe0bba045f Fix compiler warnings
fix compiler warnings due to unused return values of scanf.
2009-02-02 13:08:14 +01:00
Sebastian Dröge
a5acb2e1a8 Fix format string compiler warning 2009-01-31 11:09:00 +01:00
Jan Schmidt
fd75e08f45 Fix up some compile flags 2009-01-30 18:04:11 +00:00
Stefan Kost
00fdca0c14 Fix example apps by drawing in the main-loop. 2009-01-27 23:10:36 +02:00
Tim-Philipp Müller
3c1f1b195f tests: fix build of aspectratio crop unit test in uninstalled environment. 2009-01-27 20:33:02 +00:00
Thijs Vermeir
27093c19a4 Add unit test for aspectratiocrop Fixes bug #527951
Add unit test for aspectratiocrop and refactor this element. Added
finalize function to cleanup leaking mutex.
2009-01-25 18:40:42 +01:00
Jan Schmidt
bff7e4bea8 Ignore check binaries 2009-01-25 14:35:20 +00:00
Jan Schmidt
093e555473 More entries for the gitignores 2009-01-23 23:38:10 +00:00
Thijs Vermeir
3733a2ef8c skip video/x-raw-gray in videocrop unit test
A recent commit added video/x-raw-gray support to videocrop. However
this lets the videocrop unit test fail. Because videotestsrc can't
generate this format.
2009-01-23 20:36:27 +01:00
Sebastian Dröge
99753365c6 Rename audioreverb to audioecho. Fixes bug #568395.
The element can add an echo and a simple reverb effect to
an audio stream but for a real reverb filter it would need
some additional filtering to prevent a metallic-sounding
result.
2009-01-22 13:27:56 +01:00
Sebastian Dröge
344a9f4229 Add an echo/reverb filter to the audiofx plugin, with configurable echo delay, intensity and feedback. Fixes bug #567...
Original commit message from CVS:
* docs/plugins/Makefile.am:
* docs/plugins/gst-plugins-good-plugins-docs.sgml:
* docs/plugins/gst-plugins-good-plugins-sections.txt:
* docs/plugins/gst-plugins-good-plugins.args:
* docs/plugins/gst-plugins-good-plugins.hierarchy:
* docs/plugins/inspect/plugin-audiofx.xml:
* docs/plugins/inspect/plugin-spectrum.xml:
* gst/audiofx/Makefile.am:
* gst/audiofx/audiofx.c: (plugin_init):
* gst/audiofx/audioreverb.c: (gst_audio_reverb_base_init),
(gst_audio_reverb_class_init), (gst_audio_reverb_init),
(gst_audio_reverb_finalize), (gst_audio_reverb_set_property),
(gst_audio_reverb_get_property), (gst_audio_reverb_setup),
(gst_audio_reverb_stop), (gst_audio_reverb_transform_ip):
* gst/audiofx/audioreverb.h:
* tests/check/Makefile.am:
* tests/check/elements/audioreverb.c: (setup_reverb),
(cleanup_reverb), (GST_START_TEST), (audioreverb_suite):
Add an echo/reverb filter to the audiofx plugin, with configurable
echo delay, intensity and feedback. Fixes bug #567874.
2009-01-19 11:19:08 +00:00
Sebastian Dröge
75c1c9f378 Add audioiirfilter and audiofirfilter elements which allow generic IIR/FIR filters to be implemented by providing the...
Original commit message from CVS:
* configure.ac:
* gst/audiofx/Makefile.am:
* gst/audiofx/audiofirfilter.c: (gst_audio_fir_filter_base_init),
(gst_audio_fir_filter_class_init),
(gst_audio_fir_filter_update_kernel), (gst_audio_fir_filter_init),
(gst_audio_fir_filter_setup), (gst_audio_fir_filter_finalize),
(gst_audio_fir_filter_set_property),
(gst_audio_fir_filter_get_property):
* gst/audiofx/audiofirfilter.h:
* gst/audiofx/audiofx.c: (plugin_init):
* gst/audiofx/audioiirfilter.c: (gst_audio_iir_filter_base_init),
(gst_audio_iir_filter_class_init),
(gst_audio_iir_filter_update_coefficients),
(gst_audio_iir_filter_init), (gst_audio_iir_filter_setup),
(gst_audio_iir_filter_finalize),
(gst_audio_iir_filter_set_property),
(gst_audio_iir_filter_get_property):
* gst/audiofx/audioiirfilter.h:
Add audioiirfilter and audiofirfilter elements which allow
generic IIR/FIR filters to be implemented by providing the
filter coefficients. Fixes bug #567577.
* docs/plugins/Makefile.am:
* docs/plugins/gst-plugins-good-plugins-docs.sgml:
* docs/plugins/gst-plugins-good-plugins-sections.txt:
* docs/plugins/gst-plugins-good-plugins.args:
* docs/plugins/gst-plugins-good-plugins.hierarchy:
* docs/plugins/gst-plugins-good-plugins.signals:
* docs/plugins/inspect/plugin-alaw.xml:
* docs/plugins/inspect/plugin-audiofx.xml:
* docs/plugins/inspect/plugin-avi.xml:
* docs/plugins/inspect/plugin-flac.xml:
* docs/plugins/inspect/plugin-mulaw.xml:
* docs/plugins/inspect/plugin-video4linux2.xml:
* docs/plugins/inspect/plugin-wavparse.xml:
Add documentation for the audioiirfilter and audiofirfilter
elements.
* tests/check/Makefile.am:
* tests/check/elements/audiofirfilter.c: (on_message),
(on_rate_changed), (on_handoff), (GST_START_TEST),
(audiofirfilter_suite):
* tests/check/elements/audioiirfilter.c: (on_message),
(on_rate_changed), (on_handoff), (GST_START_TEST),
(audioiirfilter_suite):
* tests/examples/Makefile.am:
* tests/examples/audiofx/Makefile.am:
* tests/examples/audiofx/firfilter-example.c: (on_message),
(on_rate_changed), (main):
* tests/examples/audiofx/iirfilter-example.c: (on_message),
(on_rate_changed), (main):
Add unit tests and example applications for the two filter
elements.
2009-01-13 19:23:57 +00:00
Wim Taymans
89060e8696 tests/examples/rtp/server-alsasrc-PCMA.c: Add some example code for printing the RTP manager stats.
Original commit message from CVS:
* tests/examples/rtp/server-alsasrc-PCMA.c: (print_source_stats),
(print_stats), (main):
Add some example code for printing the RTP manager stats.
2009-01-13 17:49:07 +00:00
Sebastian Dröge
0016658ace gst/audiofx/: Implement a base class for generic audio FIR filters.
Original commit message from CVS:
* gst/audiofx/Makefile.am:
* gst/audiofx/audiofxbasefirfilter.c:
(gst_audio_fx_base_fir_filter_dispose),
(gst_audio_fx_base_fir_filter_base_init),
(gst_audio_fx_base_fir_filter_class_init),
(gst_audio_fx_base_fir_filter_init),
(gst_audio_fx_base_fir_filter_push_residue),
(gst_audio_fx_base_fir_filter_setup),
(gst_audio_fx_base_fir_filter_transform),
(gst_audio_fx_base_fir_filter_start),
(gst_audio_fx_base_fir_filter_stop),
(gst_audio_fx_base_fir_filter_query),
(gst_audio_fx_base_fir_filter_query_type),
(gst_audio_fx_base_fir_filter_event),
(gst_audio_fx_base_fir_filter_set_kernel):
* gst/audiofx/audiofxbasefirfilter.h:
* gst/audiofx/audiofxbaseiirfilter.c:
Implement a base class for generic audio FIR filters.
* gst/audiofx/audiowsincband.c:
(gst_gst_audio_wsincband_mode_get_type),
(gst_gst_audio_wsincband_window_get_type),
(gst_audio_wsincband_base_init), (gst_audio_wsincband_class_init),
(gst_audio_wsincband_init), (gst_audio_wsincband_build_kernel),
(gst_audio_wsincband_setup), (gst_audio_wsincband_set_property),
(gst_audio_wsincband_get_property):
* gst/audiofx/audiowsincband.h:
* gst/audiofx/audiowsinclimit.c:
(gst_audio_wsinclimit_mode_get_type),
(gst_audio_wsinclimit_window_get_type),
(gst_audio_wsinclimit_base_init),
(gst_audio_wsinclimit_class_init), (gst_audio_wsinclimit_init),
(gst_audio_wsinclimit_build_kernel), (gst_audio_wsinclimit_setup),
(gst_audio_wsinclimit_set_property),
(gst_audio_wsinclimit_get_property):
* gst/audiofx/audiowsinclimit.h:
* tests/check/elements/audiowsincband.c: (GST_START_TEST):
* tests/check/elements/audiowsinclimit.c: (GST_START_TEST):
Use this new base class for audiowsincband and audiowsinclimit.
Also cleanup both elements.
2009-01-11 19:03:38 +00:00
Mark Nauwelaerts
7958cf82ab gst/matroska/: Some cleanups, refactoring and minor enhancements in caps handling.
Original commit message from CVS:
* gst/matroska/matroska-demux.c: (gst_matroska_demux_video_caps):
* gst/matroska/matroska-mux.c: (gst_matroska_mux_video_pad_setcaps):
Some cleanups, refactoring and minor enhancements in caps handling.
* gst/matroska/matroska-mux.c: (gst_matroska_mux_class_init),
(gst_matroska_mux_init), (gst_matroska_pad_reset),
(gst_matroska_pad_free), (gst_matroska_mux_reset),
(gst_matroska_mux_video_pad_setcaps),
(gst_matroska_mux_request_new_pad):
* tests/check/elements/matroskamux.c: (teardown_src_pad):
Only remove, release or reset what is appropriate upon state change.
2009-01-08 15:56:46 +00:00
Wim Taymans
996fb72681 tests/examples/rtp/server-decodebin-H263p-AMR.sh: Add example RTP transcoding pipeline from any file decodedable with...
Original commit message from CVS:
* tests/examples/rtp/server-decodebin-H263p-AMR.sh:
Add example RTP transcoding pipeline from any file decodedable with
uridecodebin.
2009-01-02 16:31:13 +00:00
Wim Taymans
9f46e70477 tests/examples/rtp/: Add two C examples of using gstrtpbin as a sender and a receiver.
Original commit message from CVS:
* tests/examples/rtp/.cvsignore:
* tests/examples/rtp/Makefile.am:
* tests/examples/rtp/client-PCMA.c: (pad_added_cb), (main):
* tests/examples/rtp/server-alsasrc-PCMA.c: (main):
Add two C examples of using gstrtpbin as a sender and a receiver.
2009-01-02 15:20:48 +00:00
Sebastian Dröge
71dec960dd tests/check/elements/deinterleave.c: Increase timeout to 3 minutes to prevent timeouts.
Original commit message from CVS:
* tests/check/elements/deinterleave.c: (deinterleave_suite):
Increase timeout to 3 minutes to prevent timeouts.
2008-12-16 13:14:39 +00:00
Sebastian Dröge
1b9cecf68b tests/check/elements/interleave.c: Increase timeout to 3 minutes to prevent timeouts.
Original commit message from CVS:
* tests/check/elements/interleave.c: (interleave_suite):
Increase timeout to 3 minutes to prevent timeouts.
2008-12-16 12:52:24 +00:00
Sebastian Dröge
2a21dd6d8e tests/check/Makefile.am: Also ignore pulsemixer for the states unit test.
Original commit message from CVS:
* tests/check/Makefile.am:
Also ignore pulsemixer for the states unit test.
2008-12-09 14:30:03 +00:00
Sebastian Dröge
c979a9cdc3 tests/check/elements/videocrop.c: Update the unit test for the new color values for BT.601 red.
Original commit message from CVS:
* tests/check/elements/videocrop.c: (check_1x1_buffer):
Update the unit test for the new color values for BT.601 red.
Fixes bug #563510.
2008-12-09 10:47:14 +00:00
Sebastian Dröge
20fbc666a8 tests/check/elements/souphttpsrc.c: The ports in libsoup are unsigned integers and not signed integers.
Original commit message from CVS:
* tests/check/elements/souphttpsrc.c: (GST_START_TEST),
(run_server):
The ports in libsoup are unsigned integers and not signed
integers.
2008-12-09 09:09:25 +00:00
Ron McOuat
24e30c8834 Add support for basic and digest authentication in souphttpsrc.
Original commit message from CVS:
Patch by: Ron McOuat <rmcouat at smartt dot com>
* ext/soup/gstsouphttpsrc.c: (gst_soup_http_src_class_init),
(gst_soup_http_src_init), (gst_soup_http_src_dispose),
(gst_soup_http_src_set_property), (gst_soup_http_src_get_property),
(gst_soup_http_src_authenticate_cb), (gst_soup_http_src_start):
* ext/soup/gstsouphttpsrc.h:
* tests/check/elements/souphttpsrc.c: (basic_auth_cb),
(digest_auth_cb), (run_test), (GST_START_TEST),
(souphttpsrc_suite), (run_server):
Add support for basic and digest authentication in souphttpsrc.
Fixes bug #561775.
2008-11-27 16:43:24 +00:00
Stefan Kost
6f13524166 tests/examples/level/level-example.c: Set fakesink to sync. Otherwise people might question the message interval. Nev...
Original commit message from CVS:
* tests/examples/level/level-example.c:
Set fakesink to sync. Otherwise people might question the message
interval. Nevertheless the timestamp in the message is what matters.
2008-11-26 21:19:47 +00:00
Wim Taymans
102a703367 tests/icles/.cvsignore: cvsignore newly generated file.
Original commit message from CVS:
* tests/icles/.cvsignore:
cvsignore newly generated file.
2008-11-25 18:13:25 +00:00
Wim Taymans
6ab4698b95 gst/videocrop/gstvideocrop.*: Fix renegotiation when changing properties using the new basetransform features. Fixes ...
Original commit message from CVS:
* gst/videocrop/gstvideocrop.c: (gst_video_crop_init),
(gst_video_crop_transform), (gst_video_crop_transform_caps),
(gst_video_crop_set_caps), (gst_video_crop_set_property):
* gst/videocrop/gstvideocrop.h:
Fix renegotiation when changing properties using the new basetransform
features. Fixes #561502.
* tests/icles/Makefile.am:
* tests/icles/videocrop2-test.c: (make_pipeline), (main):
Add crazy interactive test unit for dynamically changing properties.
2008-11-25 16:06:22 +00:00
Jan Schmidt
968bee1f95 tests/check/Makefile.am: Just keep disabling elements that hang the states test until it works.
Original commit message from CVS:
* tests/check/Makefile.am:
Just keep disabling elements that hang the states test until it
works.
2008-11-20 13:58:43 +00:00
Wim Taymans
2e24acaa5b tests/check/elements/icydemux.c: Add some refcount check
Original commit message from CVS:
* tests/check/elements/icydemux.c: (icydemux_found_pad):
Add some refcount check
* tests/check/elements/rtp-payloading.c: (rtp_pipeline_run):
Don't ignore the result of write(), fixes a  compiler warning for me.
* tests/icles/videobox-test.c: (main):
Make the output a little more pretty.
2008-10-27 10:33:20 +00:00
Jan Schmidt
cbeb0d1d49 tests/check/Makefile.am: Don't run the states test on pulsesrc and pulsesink
Original commit message from CVS:
* tests/check/Makefile.am:
Don't run the states test on pulsesrc and pulsesink
2008-10-16 15:30:22 +00:00
Edward Hervey
8e8e2bf451 gst/qtdemux/qtdemux.c: Remove previous wrong commit
Original commit message from CVS:
* gst/qtdemux/qtdemux.c: Remove previous wrong commit
* tests/check/elements/icydemux.c: (icydemux_found_pad):
Remove problematic and useless refcount check.
Fixes #556381
2008-10-15 09:39:27 +00:00
Wim Taymans
a3dd91a4ae tests/examples/rtp/: Add some more H263p server and client examples.
Original commit message from CVS:
* tests/examples/rtp/client-H263p.sdp:
* tests/examples/rtp/client-H263p.sh:
* tests/examples/rtp/server-VTS-H263p.sh:
Add some more H263p server and client examples.
2008-10-07 09:58:13 +00:00
Jan Schmidt
a236a2df36 gst/: Fix build flags order.
Original commit message from CVS:
* gst/interleave/Makefile.am:
* gst/matroska/Makefile.am:
Fix build flags order.
* tests/check/elements/audioamplify.c: (GST_START_TEST):
* tests/check/elements/audiodynamic.c: (GST_START_TEST):
* tests/check/elements/audioinvert.c: (GST_START_TEST):
* tests/check/elements/audiopanorama.c: (GST_START_TEST):
Format fixes.
* tests/check/elements/multifile.c:
Pull in unistd.h
2008-09-17 13:49:04 +00:00