volume: disable GAP flag setting not to drop the audio buffer 67/100467/1
authorEunhae Choi <eunhae1.choi@samsung.com>
Fri, 25 Nov 2016 10:36:46 +0000 (19:36 +0900)
committereunhae choi <eunhae1.choi@samsung.com>
Mon, 28 Nov 2016 08:31:01 +0000 (00:31 -0800)
Change-Id: Ia370e738ebd3b9c6ac70a34f4f9e950fb1d04089
(cherry picked from commit 6d5456c16876544cc8125c56580cf478eb2ad1b8)

gst/volume/gstvolume.c
packaging/gst-plugins-base.spec

index 0b6482a..bfa6076 100644 (file)
@@ -794,7 +794,10 @@ volume_transform_ip (GstBaseTransform * base, GstBuffer * outbuf)
 
   if (self->current_volume == 0.0 || self->current_mute) {
     orc_memset (map.data, 0, map.size);
+#ifndef TIZEN_FEATURE_VOLUME_MODIFICATION
+    /* if set this flag, it will be drop at baseaudiosink and it cause pa close. */
     GST_BUFFER_FLAG_SET (outbuf, GST_BUFFER_FLAG_GAP);
+#endif
   } else if (self->current_volume != 1.0) {
     self->process (self, map.data, map.size);
   }
index 43c7d29..d66d9fc 100644 (file)
@@ -5,7 +5,7 @@
 
 Name:           gst-plugins-base
 Version:        1.6.1
-Release:        8
+Release:        9
 License:        LGPL-2.0+
 Summary:        GStreamer Streaming-Media Framework Plug-Ins
 Url:            http://gstreamer.freedesktop.org/
@@ -76,6 +76,7 @@ export CFLAGS="%{optflags} -fno-strict-aliasing\
  -DTIZEN_FEATURE_DISABLE_MIME_TYPES\
  -DTIZEN_FEATURE_VIDEO_MODIFICATION\
  -DTIZEN_FEATURE_SUBPARSE_MODIFICATION\
+ -DTIZEN_FEATURE_VOLUME_MODIFICATION\
 %if "%{?profile}" == "tv"
  -DTIZEN_PROFILE_TV\
 %endif