gst/audiotestsrc/gstaudiotestsrc.c: Mark buffers as GAP,if volume is 0.0 and fix the previous logic.

Original commit message from CVS:
* gst/audiotestsrc/gstaudiotestsrc.c:
Mark buffers as GAP,if volume is 0.0 and fix the previous logic.
This commit is contained in:
Stefan Kost 2008-02-21 08:05:10 +00:00
parent 185614e387
commit 7278c5871c
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2008-02-21 Stefan Kost <ensonic@users.sf.net>
* gst/audiotestsrc/gstaudiotestsrc.c:
Mark buffers as GAP,if volume is 0.0 and fix the previous logic.
2008-02-20 Sebastian Dröge <slomo@circular-chaos.org>
* ext/gnomevfs/gstgnomevfssink.c:

View file

@ -875,7 +875,8 @@ gst_audio_test_src_create (GstBaseSrc * basesrc, guint64 offset,
src->process (src, GST_BUFFER_DATA (buf));
if (src->wave == G_UNLIKELY (GST_AUDIO_TEST_SRC_WAVE_SILENCE)) {
if (G_UNLIKELY ((src->wave == GST_AUDIO_TEST_SRC_WAVE_SILENCE)
|| (src->volume == 0.0))) {
GST_BUFFER_FLAG_SET (buf, GST_BUFFER_FLAG_GAP);
}