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;
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;
}
}