volume: disable GAP flag setting not to drop the audio buffer
authorEunhae Choi <eunhae1.choi@samsung.com>
Fri, 25 Nov 2016 10:36:46 +0000 (19:36 +0900)
committerEunhae Choi <eunhae1.choi@samsung.com>
Fri, 25 Nov 2016 10:36:46 +0000 (19:36 +0900)
Change-Id: Ia370e738ebd3b9c6ac70a34f4f9e950fb1d04089

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