[pitivi: 10/13] Make singledecodebin and pipeline queues smaller.



commit 4833ac9b54dc236ecfd57f0b4da373b86ee70db6
Author: Alessandro Decina <alessandro d gmail com>
Date:   Tue Mar 2 01:21:24 2010 +0100

    Make singledecodebin and pipeline queues smaller.
    
    Set max_size_buffers=3 in singledecodebin and Pipeline. This makes
    seeking around in the timeline a bit faster.

 pitivi/elements/singledecodebin.py |    1 +
 pitivi/pipeline.py                 |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/elements/singledecodebin.py b/pitivi/elements/singledecodebin.py
index addb42a..7c656bf 100644
--- a/pitivi/elements/singledecodebin.py
+++ b/pitivi/elements/singledecodebin.py
@@ -185,6 +185,7 @@ class SingleDecodeBin(gst.Bin):
     def _plugDecodingQueue(self, pad):
         queue = gst.element_factory_make("queue")
         queue.props.max_size_time = self.QUEUE_SIZE
+        queue.props.max_size_buffers = 3
         self.add(queue)
         queue.sync_state_with_parent()
         pad.link(queue.get_pad("sink"))
diff --git a/pitivi/pipeline.py b/pitivi/pipeline.py
index 2a366ae..00a8929 100644
--- a/pitivi/pipeline.py
+++ b/pitivi/pipeline.py
@@ -711,7 +711,7 @@ class Pipeline(Signallable, Loggable):
 
         stream_entry.queue = gst.element_factory_make("queue")
         stream_entry.queue.props.max_size_time = queuesize * gst.SECOND
-        stream_entry.queue.props.max_size_buffers = 0
+        stream_entry.queue.props.max_size_buffers = 3
         stream_entry.queue.props.max_size_bytes = 0
         self._pipeline.add(stream_entry.queue)
         stream_entry.queue.set_state(STATE_PAUSED)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]