[0.6.285] fix hls prepare issue
[platform/core/multimedia/libmm-player.git] / src / mm_player_gst.c
index 88f4f8e..27498b7 100644 (file)
@@ -2991,13 +2991,16 @@ __mmplayer_gst_select_stream (GstElement * uridecodebin, GstStreamCollection * c
                if (player->track[MM_PLAYER_TRACK_TYPE_VIDEO].total_track_num >= 1)
                        goto EXIT;
 
-               mm_attrs_get_int_by_name(player->attrs, "display_surface_type", &stype);
-
-               /* don't make video because of not required */
-               if ((stype == MM_DISPLAY_SURFACE_NULL) &&
-                       (!player->set_mode.video_export)) {
-                       LOGD("no need video decoding, skip video stream");
-                       goto EXIT;
+               // FIXME: it cause block during preparing
+               if ((!MMPLAYER_IS_HTTP_LIVE_STREAMING(player)) && (!MMPLAYER_IS_DASH_STREAMING(player))) {
+                       mm_attrs_get_int_by_name(player->attrs, "display_surface_type", &stype);
+
+                       /* don't make video because of not required */
+                       if ((stype == MM_DISPLAY_SURFACE_NULL) &&
+                               (!player->set_mode.video_export)) {
+                               LOGD("no need video decoding, skip video stream");
+                               goto EXIT;
+                       }
                }
 
                if (caps_structure) {