[0.6.45] set muse client pid to audiosink property 78/126378/4
authorSangchul Lee <sc11.lee@samsung.com>
Fri, 21 Apr 2017 06:45:50 +0000 (15:45 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Wed, 26 Apr 2017 05:55:32 +0000 (14:55 +0900)
Change-Id: I721fa3b08c6eca57b934c8028e138744865ae535
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
packaging/libmm-player.spec
src/mm_player_priv.c

index 7239988..6a6e06d 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-player
 Summary:    Multimedia Framework Player Library
-Version:    0.6.44
+Version:    0.6.45
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
index 5f3bc7e..ba46a6f 100644 (file)
@@ -4554,14 +4554,15 @@ void __mmplayer_gst_set_audiosink_property(mm_player_t* player, MMHandleType att
                LOGE("stream_type is null.\n");
        } else {
                if (player->sound_focus.focus_id)
-                       snprintf(stream_props, sizeof(stream_props)-1, "props,media.role=%s, media.parent_id=%d, media.focus_id=%d",
-                                       stream_type, stream_id, player->sound_focus.focus_id);
+                       snprintf(stream_props, sizeof(stream_props)-1, "props,media.role=%s, media.parent_id=%d, media.focus_id=%d, mused.client_pid=%d",
+                                       stream_type, stream_id, player->sound_focus.focus_id, player->sound_focus.pid);
                else
-                       snprintf(stream_props, sizeof(stream_props)-1, "props,media.role=%s, media.parent_id=%d",
-                                       stream_type, stream_id);
+                       snprintf(stream_props, sizeof(stream_props)-1, "props,media.role=%s, media.parent_id=%d, mused.client_pid=%d",
+                                       stream_type, stream_id, player->sound_focus.pid);
                props = gst_structure_from_string(stream_props, NULL);
                g_object_set(player->pipeline->audiobin[MMPLAYER_A_SINK].gst, "stream-properties", props, NULL);
-               LOGI("stream_type[%s], stream_id[%d], focus_id[%d], result[%s].\n", stream_type, stream_id, player->sound_focus.focus_id, stream_props);
+               LOGI("stream_type[%s], stream_id[%d], focus_id[%d], client_pid[%d], result[%s].\n",
+                       stream_type, stream_id, player->sound_focus.focus_id, player->sound_focus.pid, stream_props);
        }
 
        mm_attrs_get_int_by_name(attrs, "sound_latency_mode", &latency_mode);