Update timestamp in idle state of module-null-source to fix crash in thread_func 25/107225/3 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable tizen_3.0.m2 accepted/tizen/3.0.m2/mobile/20170105.025121 accepted/tizen/3.0.m2/tv/20170105.025234 accepted/tizen/3.0.m2/wearable/20170105.025331 accepted/tizen/3.0/common/20161228.162140 accepted/tizen/3.0/ivi/20161228.091218 accepted/tizen/3.0/mobile/20161228.091118 accepted/tizen/3.0/tv/20161228.091133 accepted/tizen/3.0/wearable/20161228.091157 submit/tizen_3.0.m2/20170104.093754 submit/tizen_3.0/20161227.051124
authorSeungbae Shin <seungbae.shin@samsung.com>
Tue, 27 Dec 2016 07:39:41 +0000 (16:39 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Tue, 27 Dec 2016 08:38:20 +0000 (17:38 +0900)
[Version] 5.0-103
[Profile] Common
[Issue Type] Fix crash

Change-Id: Ia15600e5d1bb2bd1f3744c9258212d54d2745431

packaging/pulseaudio.spec
src/modules/module-null-source.c

index 9d3670c..cc947a0 100644 (file)
@@ -11,7 +11,7 @@
 Name:             pulseaudio
 Summary:          Improved Linux sound server
 Version:          5.0
-Release:          102
+Release:          103
 Group:            Multimedia/Audio
 License:          LGPL-2.1+
 URL:              http://pulseaudio.org
index cd3e260..7db8d52 100644 (file)
@@ -94,8 +94,12 @@ static int source_process_msg(pa_msgobject *o, int code, void *data, int64_t off
 
     switch (code) {
         case PA_SOURCE_MESSAGE_SET_STATE:
-
+#ifdef __TIZEN__
+            /* update timestamp in idle state also to avoid crash in thread_func */
+            if (PA_SOURCE_IS_OPENED(PA_PTR_TO_UINT(data)))
+#else
             if (PA_PTR_TO_UINT(data) == PA_SOURCE_RUNNING)
+#endif
                 u->timestamp = pa_rtclock_now();
 
             break;