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