From 248742277c62c76f90ae84119af4214c126e15a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sat, 15 Dec 2007 03:40:34 +0000 Subject: [PATCH] Use new gst_base_transform_set_gap_aware() function as volume correctly handles GST_BUFFER_FLAG_GAP. Require core 0.1... Original commit message from CVS: * configure.ac: * gst/volume/gstvolume.c: (gst_volume_init): Use new gst_base_transform_set_gap_aware() function as volume correctly handles GST_BUFFER_FLAG_GAP. Require core 0.10.15.1 for this. --- ChangeLog | 8 ++++++++ configure.ac | 2 +- gst/volume/gstvolume.c | 2 ++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 1bf4542da4..0ce7082fd5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2007-12-14 Sebastian Dröge + + * configure.ac: + * gst/volume/gstvolume.c: (gst_volume_init): + Use new gst_base_transform_set_gap_aware() function as volume + correctly handles GST_BUFFER_FLAG_GAP. Require core 0.10.15.1 + for this. + 2007-12-14 Wim Taymans * tests/examples/seek/seek.c: (msg_segment_done), (main): diff --git a/configure.ac b/configure.ac index 37ac372130..dcbe3a7ec1 100644 --- a/configure.ac +++ b/configure.ac @@ -54,7 +54,7 @@ dnl AS_LIBTOOL_TAGS AM_PROG_LIBTOOL dnl *** required versions of GStreamer stuff *** -GST_REQ=0.10.14.1 +GST_REQ=0.10.15.1 dnl *** autotools stuff **** diff --git a/gst/volume/gstvolume.c b/gst/volume/gstvolume.c index 222ea0b476..87333493d4 100644 --- a/gst/volume/gstvolume.c +++ b/gst/volume/gstvolume.c @@ -479,6 +479,8 @@ gst_volume_init (GstVolume * this, GstVolumeClass * g_class) track->flags = GST_MIXER_TRACK_SOFTWARE; this->tracklist = g_list_append (this->tracklist, track); } + + gst_base_transform_set_gap_aware (GST_BASE_TRANSFORM (this), TRUE); } /* NOTE: although it might be tempting to have volume_process_mute() which uses