From: Sangchul Lee Date: Mon, 13 May 2019 03:07:51 +0000 (+0900) Subject: [0.6.193] Apply client PID to pulsesink properties X-Git-Tag: submit/tizen/20190513.085714^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f005e543d18939bbc267f05505ea5c7e8dcd5345;p=platform%2Fcore%2Fmultimedia%2Flibmm-player.git [0.6.193] Apply client PID to pulsesink properties Change-Id: I36004f1ed58bd6989e2fcc8f10d0f9c48a514f67 Signed-off-by: Sangchul Lee --- diff --git a/packaging/libmm-player.spec b/packaging/libmm-player.spec index 0ba5d39..bcac4db 100644 --- a/packaging/libmm-player.spec +++ b/packaging/libmm-player.spec @@ -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 diff --git a/src/mm_player_priv.c b/src/mm_player_priv.c index 7c9f0c0..ce103ae 100644 --- a/src/mm_player_priv.c +++ b/src/mm_player_priv.c @@ -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);