[0.6.284] fix time limit to resolve mq block
[platform/core/multimedia/libmm-player.git] / src / mm_player_gst.c
index 60efc67..88f4f8e 100644 (file)
@@ -2955,12 +2955,6 @@ __mmplayer_gst_select_stream (GstElement * uridecodebin, GstStreamCollection * c
                                goto EXIT;
                        }
                }
-       } else {
-               if ((stype & GST_STREAM_TYPE_AUDIO) || (stype & GST_STREAM_TYPE_VIDEO)) {
-                       LOGD("No caps info, skip it");
-                       ret = 0;
-                       goto EXIT;
-               }
        }
 
        switch (stype) {
@@ -3158,10 +3152,15 @@ __mmplayer_gst_deep_element_added(GstElement *bin, GstBin *child, GstElement *el
 
        if (g_strrstr(factory_name, "urisourcebin")) {
                GstElement *dbin3 = __mmplayer_gst_find_child_element(child, "decodebin3");
-               if (dbin3)
+               if (dbin3) {
+                       GstElement *mq = __mmplayer_gst_find_child_element(child, "multiqueue");
+                       if (mq)
+                               g_object_set(G_OBJECT(mq), "use-interleave", FALSE, NULL);
+
                        __mmplayer_decodebin3_setup(GST_BIN(dbin3), data);
-               else
+               } else {
                        LOGW("failed to find decodebin3");
+               }
        } else if (g_strrstr(factory_name, "parsebin")) {
                g_object_set(G_OBJECT(child), "message-forward", TRUE, NULL); /* urisourcebin */
                __mmplayer_parsebin_setup(GST_BIN(element), data);