Enable to use prebuf configuration as -1. 58/108458/3
authorKimJeongYeon <jeongyeon.kim@samsung.com>
Thu, 8 Dec 2016 01:39:11 +0000 (10:39 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Thu, 5 Jan 2017 05:36:43 +0000 (21:36 -0800)
[Version] 5.0.121
[Profile] Common
[Issue Type] Improves

Signed-off-by: KimJeongYeon <jeongyeon.kim@samsung.com>
Change-Id: Ia70798290f7ca6d07f61986b5d28e5c72ba2aae5

packaging/pulseaudio-modules-tizen.spec
src/stream-manager.c

index f370bf0..f416ce9 100644 (file)
@@ -1,6 +1,6 @@
 Name:             pulseaudio-modules-tizen
 Summary:          Pulseaudio modules for Tizen
-Version:          5.0.120
+Version:          5.0.121
 Release:          0
 Group:            Multimedia/Audio
 License:          LGPL-2.1+
index 36dcfe3..e1ac154 100644 (file)
@@ -2536,6 +2536,8 @@ static void update_buffer_attribute(pa_stream_manager *m, void *new_data, stream
             tlength = pa_usec_to_bytes(tlength_ms * 1000, sample_spec);
         if (prebuf_ms >= 0)
             prebuf = pa_usec_to_bytes(prebuf_ms * 1000, sample_spec);
+        else
+            prebuf = -1;
 
         pa_proplist_setf(GET_STREAM_NEW_PROPLIST(new_data, stream_type), PA_PROP_BUFFER_ATTR_TLENGTH, "%d", tlength);
         pa_proplist_setf(GET_STREAM_NEW_PROPLIST(new_data, stream_type), PA_PROP_BUFFER_ATTR_MINREQ, "%d", minreq);