From f05ec0f2e97f0fa09cc1556b3db5f9850926b8d8 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Sun, 24 Feb 2013 12:19:21 +0100 Subject: [PATCH] The logic was the wrong way around. The idea is that we set an interval that is definitely smaller than the whole file. --- morituri/common/encode.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/morituri/common/encode.py b/morituri/common/encode.py index dba0eb1..7b0ad8d 100644 --- a/morituri/common/encode.py +++ b/morituri/common/encode.py @@ -239,8 +239,8 @@ class EncodeTask(ctask.GstPipelineTask): # set an interval that is smaller than the duration # FIXME: check level and make sure it emits level up to the last # sample, even if input is small - interval = 1000000000L - if interval < duration: + interval = self.gst.SECOND + if interval > duration: interval = duration / 2 self._level.set_property('interval', interval) # add a probe so we can track progress