From 7278c5871c498e56a3e2a8c25cb006739159c6ea Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Thu, 21 Feb 2008 08:05:10 +0000 Subject: [PATCH] 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. --- ChangeLog | 5 +++++ gst/audiotestsrc/gstaudiotestsrc.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ec843aac85..c74269b3ae 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-02-21 Stefan Kost + + * gst/audiotestsrc/gstaudiotestsrc.c: + Mark buffers as GAP,if volume is 0.0 and fix the previous logic. + 2008-02-20 Sebastian Dröge * ext/gnomevfs/gstgnomevfssink.c: diff --git a/gst/audiotestsrc/gstaudiotestsrc.c b/gst/audiotestsrc/gstaudiotestsrc.c index a63bf45cb9..7f41e13168 100644 --- a/gst/audiotestsrc/gstaudiotestsrc.c +++ b/gst/audiotestsrc/gstaudiotestsrc.c @@ -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); }