decodebin: Pass through the seekability information when setting multiqueue limits
authorSebastian Dröge <sebastian@centricular.com>
Thu, 20 Feb 2014 14:37:54 +0000 (15:37 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Sat, 22 Feb 2014 23:10:01 +0000 (00:10 +0100)
gst/playback/gstdecodebin2.c

index 1d8401a..d835d87 100644 (file)
@@ -3653,7 +3653,8 @@ gst_decode_group_reset_buffering (GstDecodeGroup * group)
         "low-percent", group->dbin->low_percent,
         "high-percent", group->dbin->high_percent, NULL);
   }
-  decodebin_set_queue_size (group->dbin, group->multiqueue, FALSE, FALSE);
+  decodebin_set_queue_size (group->dbin, group->multiqueue, FALSE,
+      (group->parent ? group->parent->seekable : TRUE));
 
   GST_DEBUG_OBJECT (group->dbin, "Setting %s buffering to %d",
       GST_ELEMENT_NAME (group->multiqueue), !ret);