The logic was the wrong way around.

The idea is that we set an interval that is definitely smaller than
the whole file.
This commit is contained in:
Thomas Vander Stichele
2013-02-24 12:19:21 +01:00
parent c2a9c1676e
commit f05ec0f2e9

View File

@@ -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