From: Eunhae Choi Date: Fri, 25 Nov 2016 10:36:46 +0000 (+0900) Subject: volume: disable GAP flag setting not to drop the audio buffer X-Git-Tag: accepted/tizen/common/20161129.173625~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dd124d524898a08ba58bcaf093fab48bd497b308;p=platform%2Fupstream%2Fgst-plugins-base.git volume: disable GAP flag setting not to drop the audio buffer Change-Id: Ia370e738ebd3b9c6ac70a34f4f9e950fb1d04089 (cherry picked from commit 6d5456c16876544cc8125c56580cf478eb2ad1b8) --- diff --git a/gst/volume/gstvolume.c b/gst/volume/gstvolume.c index 0b6482a..bfa6076 100644 --- a/gst/volume/gstvolume.c +++ b/gst/volume/gstvolume.c @@ -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); } diff --git a/packaging/gst-plugins-base.spec b/packaging/gst-plugins-base.spec index 43c7d29..d66d9fc 100644 --- a/packaging/gst-plugins-base.spec +++ b/packaging/gst-plugins-base.spec @@ -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