[SCM] morituri/master: log all tasks
js at users.alioth.debian.org
js at users.alioth.debian.org
Sun Oct 19 20:09:49 UTC 2014
The following commit has been merged in the master branch:
commit 43963a005012dcd36d50f270fbc23a01e0d79000
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date: Thu Dec 6 16:58:44 2012 +0000
log all tasks
diff --git a/morituri/common/encode.py b/morituri/common/encode.py
index f00fc1b..5b0967a 100644
--- a/morituri/common/encode.py
+++ b/morituri/common/encode.py
@@ -297,7 +297,7 @@ class EncodeTask(ctask.GstPipelineTask):
# self.peak = 0.0
-class TagReadTask(gstreamer.GstPipelineTask):
+class TagReadTask(ctask.GstPipelineTask):
"""
I am a task that reads tags.
@@ -334,7 +334,7 @@ class TagReadTask(gstreamer.GstPipelineTask):
self.taglist = taglist
-class TagWriteTask(task.Task):
+class TagWriteTask(ctask.LoggableTask):
"""
I am a task that retags an encoded file.
"""
@@ -411,7 +411,7 @@ class TagWriteTask(task.Task):
task.Task.stop(self)
-class SafeRetagTask(task.MultiSeparateTask):
+class SafeRetagTask(ctask.LoggableMultiSeparateTask):
"""
I am a task that retags an encoded file safely in place.
First of all, if the new tags are the same as the old ones, it doesn't
diff --git a/morituri/common/task.py b/morituri/common/task.py
index f0591d5..a40acc2 100644
--- a/morituri/common/task.py
+++ b/morituri/common/task.py
@@ -16,6 +16,12 @@ class SyncRunner(log.Loggable, task.SyncRunner):
pass
+class LoggableTask(log.Loggable, task.Task):
+ pass
+
+class LoggableMultiSeparateTask(log.Loggable, task.MultiSeparateTask):
+ pass
+
class GstPipelineTask(log.Loggable, gstreamer.GstPipelineTask):
pass
--
morituri packaging
More information about the pkg-multimedia-commits
mailing list