- _mm_player_streaming_set_queue2(player->streamer,
- element,
- FALSE,
- type,
- (guint64)dur_bytes); /* no meaning at the moment */
- return;
- }
- }
-
- if (g_strrstr(factory_name, "parsebin") /* will be removed after gst 1.22.0 is applied */
- || g_strrstr(factory_name, "identity")) {
- if ((!MMPLAYER_IS_RTSP_STREAMING(player)) && (!mainbin[MMPLAYER_M_DEMUXED_S_BUFFER].gst)) {
- GstElement *ch_element = __mmplayer_gst_find_child_element(child, "multiqueue");
- if (ch_element) {
- player->pipeline->mainbin[MMPLAYER_M_DEMUXED_S_BUFFER].id = MMPLAYER_M_DEMUXED_S_BUFFER;
- player->pipeline->mainbin[MMPLAYER_M_DEMUXED_S_BUFFER].gst = ch_element;
-
- /* in case of multiqueue, max bytes size is defined with fixed value in mm_player_streaming.h */
- if (MMPLAYER_IS_STREAMING(player)) {
- _mm_player_streaming_set_multiqueue(player->streamer, ch_element);
- } else {
- g_object_set(G_OBJECT(ch_element),
- "max-size-time", (guint64)(5 * GST_SECOND),
- "use-interleave", FALSE, NULL);
- }
- }
- }
- int video_codec_type = 0;
- int audio_codec_type = 0;
-
- g_object_set(G_OBJECT(child), "message-forward", TRUE, NULL);
- g_object_set(G_OBJECT(element), "message-forward", TRUE, NULL);
- if (player->type_caps &&
- !MMPLAYER_IS_HTTP_LIVE_STREAMING(player) &&
- !MMPLAYER_IS_DASH_STREAMING(player))
- g_object_set(G_OBJECT(element), "sink-caps", player->type_caps, NULL);
-
- mm_attrs_get_int_by_name(player->attrs, MM_PLAYER_VIDEO_CODEC_TYPE, &video_codec_type);
- mm_attrs_get_int_by_name(player->attrs, MM_PLAYER_AUDIO_CODEC_TYPE, &audio_codec_type);