tizenaudio-policy: Fix to set active device type to stream property properly in case... 32/134832/1
authorSangchul Lee <sc11.lee@samsung.com>
Tue, 20 Jun 2017 06:33:44 +0000 (15:33 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Tue, 20 Jun 2017 06:33:44 +0000 (15:33 +0900)
[Version] 5.0.153
[Profile] Common
[Issue Type] Bug fix

Change-Id: If1324b19a610909ec9ea8f0054dde30ff71d3177
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
packaging/pulseaudio-modules-tizen.spec
src/module-tizenaudio-policy.c

index 2afe3a4..7870a67 100644 (file)
@@ -1,6 +1,6 @@
 Name:             pulseaudio-modules-tizen
 Summary:          Pulseaudio modules for Tizen
-Version:          5.0.152
+Version:          5.0.153
 Release:          0
 Group:            Multimedia/Audio
 License:          LGPL-2.1+
index ecae445..196f997 100644 (file)
@@ -512,7 +512,7 @@ static pa_hook_result_t select_proper_sink_or_source_hook_cb(pa_core *c, pa_stre
                 else
                     *(data->proper_source) = pa_tz_device_get_source(latest_device, data->device_role);
 
-                pa_proplist_sets(GET_STREAM_NEW_PROPLIST(data->stream, data->stream_type), PA_PROP_MEDIA_ROUTE_AUTO_ACTIVE_DEV, dm_device_type);
+                pa_proplist_sets(GET_STREAM_NEW_PROPLIST(data->stream, data->stream_type), PA_PROP_MEDIA_ROUTE_AUTO_ACTIVE_DEV, pa_tz_device_get_type(latest_device));
             }
         }