aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorAndreas Frisch <andreas.frisch@multimedia-labs.de>2008-09-15 15:17:14 +0000
committerAndreas Frisch <andreas.frisch@multimedia-labs.de>2008-09-15 15:17:14 +0000
commitb022af8280c8f3b0a2ac8b71391bf961d11e0856 (patch)
tree111927d945dbe86a4cb5f9680c4d83747918ca48 /lib/python
parentaddc55dea655c3d4cdde664d4127c40481fc93b5 (diff)
downloadenigma2-b022af8280c8f3b0a2ac8b71391bf961d11e0856.tar.gz
enigma2-b022af8280c8f3b0a2ac8b71391bf961d11e0856.zip
ignore mplex buffer underruns since they apperently only occur at the very end of streams
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Plugins/Extensions/DVDBurn/Process.py21
1 files changed, 12 insertions, 9 deletions
diff --git a/lib/python/Plugins/Extensions/DVDBurn/Process.py b/lib/python/Plugins/Extensions/DVDBurn/Process.py
index ec674ef2..913e7935 100644
--- a/lib/python/Plugins/Extensions/DVDBurn/Process.py
+++ b/lib/python/Plugins/Extensions/DVDBurn/Process.py
@@ -1,4 +1,4 @@
-from Components.Task import Task, Job, job_manager, DiskspacePrecondition, Condition
+from Components.Task import Task, Job, job_manager, DiskspacePrecondition, Condition, ToolExistsPrecondition
from Screens.MessageBox import MessageBox
class png2yuvTask(Task):
@@ -11,13 +11,11 @@ class png2yuvTask(Task):
def run(self, callback, task_progress_changed):
Task.run(self, callback, task_progress_changed)
+ self.container.stdoutAvail.get().remove(self.processStdout)
self.container.dumpToFile(self.dumpFile)
def processStderr(self, data):
- print "[png2yuvTask]", data
-
- def processStdout(self, data):
- pass
+ print "[png2yuvTask]", data[:-1]
class mpeg2encTask(Task):
def __init__(self, job, inputfile, outputfile):
@@ -45,15 +43,13 @@ class spumuxTask(Task):
def run(self, callback, task_progress_changed):
Task.run(self, callback, task_progress_changed)
+ self.container.stdoutAvail.get().remove(self.processStdout)
self.container.dumpToFile(self.dumpFile)
self.container.readFromFile(self.inputFile)
def processStderr(self, data):
print "[spumuxTask]", data[:-1]
- def processStdout(self, data):
- pass
-
class MakeFifoNode(Task):
def __init__(self, job, number):
Task.__init__(self, job, "Make FIFO nodes")
@@ -146,6 +142,8 @@ class DemuxTask(Task):
class MplexTaskPostcondition(Condition):
def check(self, task):
+ if task.error == task.ERROR_UNDERRUN:
+ return True
return task.error is None
def getErrorMessage(self, task):
@@ -167,6 +165,12 @@ class MplexTask(Task):
if inputfiles:
self.args += inputfiles
+ def setTool(self, tool):
+ self.cmd = tool
+ self.args = [tool]
+ self.global_preconditions.append(ToolExistsPrecondition())
+ # we don't want the ReturncodePostcondition in this case because for right now we're just gonna ignore the fact that mplex fails with a buffer underrun error on some streams (this always at the very end)
+
def prepare(self):
self.error = None
if self.demux_task:
@@ -177,7 +181,6 @@ class MplexTask(Task):
if line.startswith("**ERROR:"):
if line.find("Frame data under-runs detected") != -1:
self.error = self.ERROR_UNDERRUN
- print "BUFFER UNDERRUN ERROR !!!"
else:
self.error = self.ERROR_UNKNOWN