Commit graph

25 commits

Author SHA1 Message Date
Andy Wingo 0ad84fae5d tests/check/Makefile.am (check_vorbis): Add pipelines/vorbisenc.
Original commit message from CVS:
2006-01-30  Andy Wingo  <wingo@pobox.com>

* tests/check/Makefile.am (check_vorbis): Add pipelines/vorbisenc.

* ext/vorbis/vorbisenc.c (gst_vorbisenc_buffer_from_packet): Logic
updated to timestamp from the first sample, not the last.
(gst_vorbisenc_buffer_from_header_packet): New function, takes
special care of granulepos and timestamp for header packets.
(gst_vorbisenc_chain): Reflow, fix some leaks, and handle the case
when the first buffer has a nonzero timestamp.

* ext/vorbis/vorbisenc.h (GstVorbisEnc.granulepos_offset)
(GstVorbisEnc.subgranule_offset): New members. Take care of the
case when the first audio buffer we get has a nonzero timestamp.
(GstVorbisEnc.next_ts): Renamed from prev_ts, because now we
properly timestamp vorbis buffers with the time of the first
sample, not the last.

* ext/vorbis/vorbisenc.c (granulepos_to_clocktime): Renamed from
vorbis_granule_time_copy -- now it takes the granule/subgranule
offset into account.

* tests/check/pipelines/vorbisenc.c: New test for correctness of
timestamps, durations, and granulepos on buffers produced by
vorbisenc.
2006-01-30 15:01:28 +00:00
Tim-Philipp Müller 097f448b19 tests/check/Makefile.am: And now fix 'make distcheck' (builddir != srcdir)
Original commit message from CVS:
* tests/check/Makefile.am:
And now fix 'make distcheck' (builddir != srcdir)
2005-12-29 12:43:22 +00:00
Tim-Philipp Müller 0d0dd13a71 tests/check/Makefile.am: Fix test case compilation.
Original commit message from CVS:
* tests/check/Makefile.am:
Fix test case compilation.
2005-12-29 12:13:57 +00:00
Tim-Philipp Müller 1068588993 gst-libs/gst/cdda/gstcddabasesrc.c: An integer is not a string. Fix access to uninitialised variable.
Original commit message from CVS:
* gst-libs/gst/cdda/gstcddabasesrc.c:
(gst_cdda_base_src_update_duration),
(gst_cdda_base_src_calculate_cddb_id):
An integer is not a string. Fix access to uninitialised variable.
* tests/check/Makefile.am:
Add cddabasesrc unit test; also actually enable the vorbis test.
* tests/check/generic/states.c:
Blacklist new cd audio elements as well.
* tests/check/libs/cddabasesrc.c:
Unit test for GstCddaBaseSrc (discid calculation mostly).
2005-12-29 11:49:11 +00:00
Thomas Vander Stichele d8ceb02149 move location of test registry
Original commit message from CVS:
move location of test registry
2005-11-30 17:05:56 +00:00
Thomas Vander Stichele 059fcb4eda add a test for videotestsrc
Original commit message from CVS:
add a test for videotestsrc
2005-11-23 12:14:10 +00:00
Thomas Vander Stichele 88df6839ae check/: add a test for audiotestsrc, testing all waves. Even seems leak-free at first glance, nice job Stefan
Original commit message from CVS:

* check/Makefile.am:
* check/elements/audiotestsrc.c: (setup_audiotestsrc),
(cleanup_audiotestsrc), (GST_START_TEST), (audiotestsrc_suite),
(main):
add a test for audiotestsrc, testing all waves.  Even seems
leak-free at first glance, nice job Stefan
2005-11-23 11:52:48 +00:00
Thomas Vander Stichele eff3b4be4e also scan sys path
Original commit message from CVS:
also scan sys path
2005-11-22 11:43:16 +00:00
Thomas Vander Stichele be5a7cd625 add a method that returns a proper GstClockTime
Original commit message from CVS:
add a method that returns a proper GstClockTime
2005-11-21 22:56:33 +00:00
Wim Taymans 3fcc19cac0 check/: Add future test for clock selection.
Original commit message from CVS:
* check/Makefile.am:
* check/clocks/selection.c: (GST_START_TEST), (volume_suite),
(main):
Add future test for clock selection.
2005-10-18 11:13:34 +00:00
Thomas Vander Stichele 82da93b310 check/Makefile.am: have some tests be disabled for valgrinding
Original commit message from CVS:

* check/Makefile.am:
have some tests be disabled for valgrinding
* check/elements/vorbisdec.c: (cleanup_vorbisdec),
(GST_START_TEST):
* ext/vorbis/vorbisdec.c: (vorbisdec_finalize):
Fix A Leak.  Chain To Parent Finalize.
2005-09-19 16:12:09 +00:00
Thomas Vander Stichele aa1262b725 use the right path
Original commit message from CVS:
use the right path
2005-09-16 08:18:16 +00:00
Thomas Vander Stichele f37a15741a remove gst-register
Original commit message from CVS:
remove gst-register
2005-09-16 00:26:15 +00:00
Jan Schmidt 0f4fa24d8e check/: Add extra tests for basetransform based components.
Original commit message from CVS:
* check/Makefile.am:
* check/pipelines/simple_launch_lines.c: (setup_pipeline),
(run_pipeline), (GST_START_TEST), (simple_launch_lines_suite):
Add extra tests for basetransform based components.
Comment out the test_element_negotiation test until we decide
if it's testing correct behaviour.
* ext/libvisual/visual.c: (gst_visual_init), (get_buffer),
(gst_visual_chain), (gst_visual_change_state):
Slightly more correct but still bogus timestamping.
Fix state change function.
* gst/audioconvert/gstaudioconvert.c:
(gst_audio_convert_class_init):
* gst/audioresample/gstaudioresample.c:
* gst/ffmpegcolorspace/gstffmpegcolorspace.c:
(gst_ffmpegcsp_class_init):
* gst/videoscale/gstvideoscale.c: (gst_videoscale_class_init),
(gst_videoscale_prepare_size), (gst_videoscale_set_caps),
(gst_videoscale_prepare_image):
* gst/volume/gstvolume.c: (gst_volume_class_init),
(volume_transform_ip):
Basetransform updates. Enable passthrough modes.
* sys/ximage/ximagesink.c: (gst_ximage_buffer_init),
(gst_ximagesink_renegotiate_size), (gst_ximagesink_xcontext_get),
(gst_ximagesink_setcaps), (gst_ximagesink_buffer_alloc):
Negotiation fix that allows the window to return to the original
size and renegotiate passthrough upstream. Extra debug output.
2005-09-09 17:53:47 +00:00
Stefan Kost 6e017cb474 check/Makefile.am: deactivate the failing test
Original commit message from CVS:
* check/Makefile.am:
deactivate the failing test
2005-09-06 12:40:39 +00:00
Stefan Kost e7081a76ce check/: added pipeline tester for (http://bugzilla.gnome.org/show_bug.cgi?id=315126)
Original commit message from CVS:
* check/Makefile.am:
* check/pipelines/.cvsignore:
* check/pipelines/simple_launch_lines.c: (setup_pipeline),
(run_pipeline), (GST_START_TEST), (simple_launch_lines_suite),
(main):
added pipeline tester for (http://bugzilla.gnome.org/show_bug.cgi?id=315126)
2005-09-06 12:37:05 +00:00
Thomas Vander Stichele 96dab2dd58 increase timeout a little
Original commit message from CVS:
increase timeout a little
2005-09-02 13:58:15 +00:00
Thomas Vander Stichele 6dff9c2cbd check/: add a test for audioconvert
Original commit message from CVS:

* check/Makefile.am:
* check/elements/audioconvert.c: (setup_audioconvert),
(cleanup_audioconvert), (get_int_caps), (verify_convert),
(GST_START_TEST), (audioconvert_suite), (main):
add a test for audioconvert
* gst/audioresample/gstaudioresample.c:
* gst/audioresample/gstaudioresample.h:
set DURATION so that TIMESTAMP(a) + DURATION(a) == TIMESTAMP(b);
note that for buffers of 1/3 sec this means DURATION(c) is
one nanosecond more than for a and b
2005-08-25 17:20:02 +00:00
Thomas Vander Stichele eae1250299 add a check for audioresample
Original commit message from CVS:
add a check for audioresample
2005-08-25 15:44:58 +00:00
Thomas Vander Stichele 2136419a0a c/: add core's plugins to the mix so that playbin works
Original commit message from CVS:

* check/Makefile.am:
* configure.ac:
add core's plugins to the mix so that playbin works
* check/generic/states.c: (GST_START_TEST):
set a 0 timeout on pipelines, so they don't force the next
state change
* gst/playback/gstplaybasebin.c: (setup_source), (prepare_output),
(gst_play_base_bin_change_state):
remove the crappy error handling and do GST error handling
2005-08-24 18:03:12 +00:00
Thomas Vander Stichele 886b43679d check/: add same test as to core, it bitches out on playbin atm.
Original commit message from CVS:
* check/Makefile.am:
* check/generic/states.c: (GST_START_TEST), (states_suite), (main):
add same test as to core, it bitches out on playbin atm.
2005-08-24 16:18:25 +00:00
Jan Schmidt 80ad4cff17 check/Makefile.am: Add CHECK_CFLAGS and LDFLAGS
Original commit message from CVS:
* check/Makefile.am:
Add CHECK_CFLAGS and LDFLAGS

* gst/playback/gstplaybasebin.c: (fill_buffer):
GST_MESSAGE_SRC became a GObject
2005-08-24 11:56:08 +00:00
Thomas Vander Stichele 6271b0c200 make sure registry is built properly
Original commit message from CVS:
make sure registry is built properly
2005-08-21 17:44:09 +00:00
Thomas Vander Stichele 585493a9dd yay, fix a segfault/security issue in vorbisdec gst-launch fakesrc ! vorbisdec wasn't happy add a test for vorbisdec
Original commit message from CVS:
yay, fix a segfault/security issue in vorbisdec
gst-launch fakesrc ! vorbisdec wasn't happy
add a test for vorbisdec
2005-08-20 20:40:25 +00:00
Thomas Vander Stichele 7da31ee8b4 add tests to gst-plugins-base add a volume element test clean up volume a little more for basetransform
Original commit message from CVS:
add tests to gst-plugins-base
add a volume element test
clean up volume a little more for basetransform
2005-08-20 18:07:10 +00:00