[0.6.284] fix time limit to resolve mq block 57/295257/3
authorEunhye Choi <eunhae1.choi@samsung.com>
Tue, 4 Jul 2023 08:25:40 +0000 (17:25 +0900)
committerEunhye Choi <eunhae1.choi@samsung.com>
Tue, 4 Jul 2023 09:23:57 +0000 (18:23 +0900)
- the time limit control in mq does not work normally
  in case of adaptive streaming

Change-Id: I93aa15581710b49a917f37ee26f77f789d34540e

packaging/libmm-player.spec
src/mm_player_gst.c

index 13c4c80..0e183cb 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-player
 Summary:    Multimedia Framework Player Library
-Version:    0.6.283
+Version:    0.6.284
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
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);