[v0.6.13]enlarge mq size to resolve block issue of seeking 66/97866/1
authorEunhae Choi <eunhae1.choi@samsung.com>
Tue, 15 Nov 2016 07:15:46 +0000 (16:15 +0900)
committereunhae choi <eunhae1.choi@samsung.com>
Tue, 15 Nov 2016 07:19:17 +0000 (23:19 -0800)
Change-Id: I89058d414fe2e6f108357a1f54452eccb177b22e
(cherry picked from commit a24d9ed511a6fb0f475df83b736479dc12032023)

src/mm_player_priv.c

index 7af3b02..77c00f2 100644 (file)
@@ -6714,6 +6714,11 @@ __mmplayer_gst_create_pipeline(mm_player_t* player) // @
                        (!MMPLAYER_IS_HTTP_STREAMING(player)))) {
                        elemId = MMPLAYER_M_AUTOPLUG;
                        element = __mmplayer_create_decodebin(player);
+                       if (element) {
+                               /* default size of mq in decodebin is 2M
+                                * but it can cause blocking issue during seeking depends on content. */
+                               g_object_set(G_OBJECT(element), "max-size-bytes", (5*1024*1024), NULL);
+                       }
                        need_state_holder = FALSE;
                } else {
                        elemId = MMPLAYER_M_TYPEFIND;