device-manager : Fix source bugs 40/89640/1
authorMok Jeongho <jho.mok@samsung.com>
Mon, 26 Sep 2016 06:41:08 +0000 (15:41 +0900)
committerMok Jeongho <jho.mok@samsung.com>
Mon, 26 Sep 2016 07:38:41 +0000 (16:38 +0900)
[Version] 5.0.77
[Profile] Common
[Issue Type] Fix bug

Change-Id: Id1b0734d38a1be43d156789047fcb32f68a6c1d6

packaging/pulseaudio-modules-tizen.spec
src/tizen-device.c

index 2b3fbee..c7b62d7 100644 (file)
@@ -1,6 +1,6 @@
 Name:             pulseaudio-modules-tizen
 Summary:          Pulseaudio modules for Tizen
-Version:          5.0.76
+Version:          5.0.77
 Release:          0
 Group:            Multimedia/Audio
 License:          LGPL-2.1+
index 8065238..7f90121 100644 (file)
@@ -326,7 +326,7 @@ static int profile_add_sink(pa_tz_profile *profile, const char *role, pa_sink *s
 static int profile_add_source(pa_tz_profile *profile, const char *role, pa_source *source) {
     pa_assert(profile);
 
-    if (pa_hashmap_put(profile->playback_devices, (void*)role, source) < 0) {
+    if (pa_hashmap_put(profile->capture_devices, (void*)role, source) < 0) {
         pa_log_error("Failed to add source : put source failed");
         return -1;
     }