mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
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:
parent
185614e387
commit
7278c5871c
2 changed files with 7 additions and 1 deletions
|
@ -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>
|
2008-02-20 Sebastian Dröge <slomo@circular-chaos.org>
|
||||||
|
|
||||||
* ext/gnomevfs/gstgnomevfssink.c:
|
* ext/gnomevfs/gstgnomevfssink.c:
|
||||||
|
|
|
@ -875,7 +875,8 @@ gst_audio_test_src_create (GstBaseSrc * basesrc, guint64 offset,
|
||||||
|
|
||||||
src->process (src, GST_BUFFER_DATA (buf));
|
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);
|
GST_BUFFER_FLAG_SET (buf, GST_BUFFER_FLAG_GAP);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue