device-manager-dbus: Fix bug to add condition to check 'none' for normal operation 46/190346/3 submit/tizen/20181001.072114
authorSangchul Lee <sc11.lee@samsung.com>
Mon, 1 Oct 2018 07:05:42 +0000 (16:05 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Mon, 1 Oct 2018 07:14:48 +0000 (16:14 +0900)
The 'none' value is to unset operation of SetSpecifcStreamOnly method.
It should not be handled as an invalid value.

[Version] 11.1.27
[Issue type] Bug fix

Change-Id: I6daed542ec48736ed9bc00573a03a6bacf1ffc05
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
packaging/pulseaudio-modules-tizen.spec
src/device-manager-dbus.c

index 86cd8c9..fc46e15 100644 (file)
@@ -1,6 +1,6 @@
 Name:             pulseaudio-modules-tizen
 Summary:          Pulseaudio modules for Tizen
-Version:          11.1.26
+Version:          11.1.27
 Release:          0
 Group:            Multimedia/Audio
 License:          LGPL-2.1+
index a878ea2..5553753 100644 (file)
@@ -1383,7 +1383,7 @@ static void handle_set_specific_stream_only(DBusConnection *conn, DBusMessage *m
         pa_dbus_send_error(conn, msg, DBUS_ERROR_NOT_SUPPORTED, "%s", "org.tizen.multimedia.audio.InvalidOperation");
         return;
     }
-    if (!pa_stream_manager_is_valid_stream_role(dm->core, stream_role)) {
+    if (!pa_streq(stream_role, "none") && !pa_stream_manager_is_valid_stream_role(dm->core, stream_role)) {
         pa_dbus_send_error(conn, msg, DBUS_ERROR_NOT_SUPPORTED, "%s", "org.tizen.multimedia.audio.InvalidOperation");
         return;
     }