stream-manager-dbus: Remove codes regarding session backward compatibility 91/174591/1
authorSangchul Lee <sc11.lee@samsung.com>
Tue, 3 Apr 2018 05:06:06 +0000 (14:06 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Tue, 3 Apr 2018 06:27:22 +0000 (15:27 +0900)
[Version] 11.1.1
[Issue Type] Code clean-up

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

index 7b5c7c2..e0f373e 100644 (file)
@@ -1,6 +1,6 @@
 Name:             pulseaudio-modules-tizen
 Summary:          Pulseaudio modules for Tizen
-Version:          11.1.0
+Version:          11.1.1
 Release:          0
 Group:            Multimedia/Audio
 License:          LGPL-2.1+
index 39edf87..2a50e04 100644 (file)
@@ -1232,7 +1232,6 @@ fail:
     dbus_message_unref(reply);
 }
 
-#define PA_PROP_MEDIA_FROM    "media.from" /* It will be removed when the session concept is completely left out */
 static bool check_stream_exist_by_pid(pa_stream_manager *m, uint32_t pid, const char *stream_role, stream_type_t type) {
     void *stream = NULL;
     uint32_t idx = 0;
@@ -1258,26 +1257,7 @@ static bool check_stream_exist_by_pid(pa_stream_manager *m, uint32_t pid, const
         app_pid_str = pa_proplist_gets(GET_STREAM_PROPLIST(stream, type), PA_PROP_APPLICATION_PROCESS_ID);
         if (app_pid_str && !pa_atou(app_pid_str, &app_pid)) {
             if (app_pid == pid) {
-                const char *media_from = NULL;
                 pa_log_info("found matching stream(%p, index:%u)", stream, GET_STREAM_INDEX(stream, type));
-
-                /* This is an exception case for session backward compatibility,
-                 * It will be removed when the session concept is completely left out. */
-                media_from = pa_proplist_gets(GET_STREAM_PROPLIST(stream, type), PA_PROP_MEDIA_FROM);
-                if (pa_safe_streq(media_from, "openAL")) {
-                    pa_log_info("stream(%p, index:%u) is from openAL, skip it.", stream, GET_STREAM_INDEX(stream, type));
-                    continue;
-                }
-
-                return true;
-            }
-        }
-
-        /* Here we checks muse-server client pid also. It will be removed when the session concept is completely left out. */
-        app_pid_str = pa_proplist_gets(GET_STREAM_PROPLIST(stream, type), "mused.client_pid");
-        if (app_pid_str && !pa_atou(app_pid_str, &app_pid)) {
-            if (app_pid == pid) {
-                pa_log_info("found matching stream(%p, index:%u) of muse-server", stream, GET_STREAM_INDEX(stream, type));
                 return true;
             }
         }