stream-manager: fix bug when updating occupying_role from source output & fix indentation 71/99171/3
authorHyunseok Lee <hs7388.lee@samsung.com>
Tue, 22 Nov 2016 05:53:03 +0000 (14:53 +0900)
committerHyunseok Lee <hs7388.lee@samsung.com>
Tue, 22 Nov 2016 23:54:50 +0000 (08:54 +0900)
[Version] 5.0.94
[Profile] Common
[Issue Type] bug

Change-Id: I1aa22163e40ee43155eff93e2605acc2d5eb86d8

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

index 0e8bd6a..a1e674a 100644 (file)
@@ -1,6 +1,6 @@
 Name:             pulseaudio-modules-tizen
 Summary:          Pulseaudio modules for Tizen
-Version:          5.0.93
+Version:          5.0.94
 Release:          0
 Group:            Multimedia/Audio
 License:          LGPL-2.1+
index d10b859..6111cea 100644 (file)
@@ -1175,7 +1175,7 @@ fail:
 }
 
 static DBusHandlerResult handle_methods(DBusConnection *conn, DBusMessage *msg, void *userdata) {
-       int idx = 0;
+    int idx = 0;
     pa_stream_manager *m = (pa_stream_manager*)userdata;
 
     pa_assert(conn);
@@ -2242,7 +2242,7 @@ static void do_notify(pa_stream_manager *m, notify_command_type_t command, strea
                         break;
                     }
                 } else if (type == STREAM_SOURCE_OUTPUT) {
-                    hook_call_select_data.occupying_role = m->cur_highest_priority.role_si;
+                    hook_call_select_data.occupying_role = m->cur_highest_priority.role_so;
                     hook_call_select_data.proper_source = &(((pa_source_output_new_data*)s)->source);
                     if (((pa_source_output_new_data*)s)->source) {
                         pa_log_info("  - source(%s) has been already selected, skip selecting source",