[0.6.193] Apply client PID to pulsesink properties 84/205984/1 accepted/tizen/unified/20190603.095209 submit/tizen/20190513.085714 submit/tizen/20190531.033658
authorSangchul Lee <sc11.lee@samsung.com>
Mon, 13 May 2019 03:07:51 +0000 (12:07 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Mon, 13 May 2019 03:16:21 +0000 (12:16 +0900)
Change-Id: I36004f1ed58bd6989e2fcc8f10d0f9c48a514f67
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
packaging/libmm-player.spec
src/mm_player_priv.c

index 0ba5d3996d5c646d71c0eb3761e9200e88b4d3aa..bcac4db9e55c2c90a47f2d0b707f750b455d0f71 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-player
 Summary:    Multimedia Framework Player Library
-Version:    0.6.192
+Version:    0.6.193
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
index 7c9f0c0e8467d803a239d60c88724f928265920e..ce103aea64b5934bf8d9bfc4c5e60ad1b4a9476c 100644 (file)
@@ -2604,16 +2604,16 @@ __mmplayer_gst_set_pulsesink_property(mmplayer_t *player)
        mm_attrs_get_int_by_name(player->attrs, "sound_stream_index", &stream_id);
        mm_attrs_get_string_by_name(player->attrs, "sound_stream_type", &stream_type);
 
-       if (!stream_type) {
-               LOGE("stream_type is null.");
-       } else {
-               snprintf(stream_props, sizeof(stream_props) - 1, "props,media.role=%s, media.parent_id=%d",
-                               stream_type, stream_id);
-               props = gst_structure_from_string(stream_props, NULL);
-               g_object_set(audiobin[MMPLAYER_A_SINK].gst, "stream-properties", props, NULL);
-               LOGI("stream_type[%s], stream_id[%d], result[%s].", stream_type, stream_id, stream_props);
-               gst_structure_free(props);
-       }
+       if (!stream_type)
+               snprintf(stream_props, sizeof(stream_props) - 1, "props,application.process.id.origin=%d", player->client_pid);
+       else
+               snprintf(stream_props, sizeof(stream_props) - 1, "props,media.role=%s, media.parent_id=%d, application.process.id.origin=%d",
+                               stream_type, stream_id, player->client_pid);
+
+       props = gst_structure_from_string(stream_props, NULL);
+       g_object_set(audiobin[MMPLAYER_A_SINK].gst, "stream-properties", props, NULL);
+       LOGI("props result[%s].", stream_props);
+       gst_structure_free(props);
 
        mm_attrs_get_int_by_name(player->attrs, "sound_latency_mode", &latency_mode);