[pitivi] SingleDecodeBin: Set the uri source block size to 512kbytes.
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pitivi] SingleDecodeBin: Set the uri source block size to 512kbytes.
- Date: Sat, 5 Sep 2009 15:20:07 +0000 (UTC)
commit e574b90f0e5bf1f167652c08ed43fed8d9e691b4
Author: Edward Hervey <bilboed bilboed com>
Date: Thu Sep 3 19:44:09 2009 +0200
SingleDecodeBin: Set the uri source block size to 512kbytes.
This will only affect sources used in push-based mode, like when used in combination
with jpegdec. This speeds up considerably decoding/usage of jpeg images.
pitivi/elements/singledecodebin.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/elements/singledecodebin.py b/pitivi/elements/singledecodebin.py
index 2cdc36c..5399bca 100644
--- a/pitivi/elements/singledecodebin.py
+++ b/pitivi/elements/singledecodebin.py
@@ -71,6 +71,9 @@ class SingleDecodeBin(gst.Bin):
self.log("created urisrc %s / %r" % (self.urisrc.get_name(),
self.urisrc))
self.add(self.urisrc)
+ # Set the blocksize to 512kbytes, this will only matter for push-based sources
+ if hasattr(self.urisrc.props, "blocksize"):
+ self.urisrc.props.blocksize = 524288
self.urisrc.link(self.typefind)
else:
self._sinkpad = gst.GhostPad("sink", self.typefind.get_pad("sink"))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]