stream-manager: Check null value 43/114143/2 accepted/tizen/3.0/common/20170213.160814 accepted/tizen/3.0/ivi/20170213.035333 accepted/tizen/3.0/mobile/20170213.035208 accepted/tizen/3.0/tv/20170213.035254 accepted/tizen/3.0/wearable/20170213.035319 submit/tizen_3.0/20170210.094941
authorhowon kim <howon.kim@samsung.com>
Fri, 10 Feb 2017 07:00:30 +0000 (16:00 +0900)
committerhowon kim <howon.kim@samsung.com>
Fri, 10 Feb 2017 07:21:15 +0000 (23:21 -0800)
[Version] 5.0.132
[Profile] Common
[Issue Type] Bug fix

Change-Id: If4968335d0af6655f8fcd25e57806835a7d38377
Signed-off-by: howon kim <howon.kim@samsung.com>
packaging/pulseaudio-modules-tizen.spec
src/stream-manager.h

index 1b4ba0b..f055fb5 100644 (file)
@@ -1,6 +1,6 @@
 Name:             pulseaudio-modules-tizen
 Summary:          Pulseaudio modules for Tizen
-Version:          5.0.131
+Version:          5.0.132
 Release:          0
 Group:            Multimedia/Audio
 License:          LGPL-2.1+
index f677285..6f8ddb6 100644 (file)
@@ -34,7 +34,7 @@
       (route_type_str && !pa_atoi(route_type_str, (int32_t*)&route_type) && (route_type == STREAM_ROUTE_TYPE_AUTO_LAST_CONNECTED))
 
 #define IS_ROLE_COMMUNICATION(stream_role) \
-      (pa_streq(stream_role, STREAM_ROLE_CALL_VOICE) || pa_streq(stream_role, STREAM_ROLE_CALL_VIDEO) || pa_streq(stream_role, STREAM_ROLE_VOIP))
+      (stream_role && (pa_streq(stream_role, STREAM_ROLE_CALL_VOICE) || pa_streq(stream_role, STREAM_ROLE_CALL_VIDEO) || pa_streq(stream_role, STREAM_ROLE_VOIP)))
 
 #define CONVERT_TO_DEVICE_ROLE(x_stream_role, x_device_role) \
 do { \