[SCM] morituri/master: * examples/ARcue.py: Error out when the file doesn't exist. * morituri/common/task.py: Drag the lake. Clean up prints.

js at users.alioth.debian.org js at users.alioth.debian.org
Sun Oct 19 20:08:43 UTC 2014


The following commit has been merged in the master branch:
commit 7860fe275bdbe0ec78cde575deed6455beb58646
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date:   Sat Apr 11 12:54:45 2009 +0000

    	* examples/ARcue.py:
    	  Error out when the file doesn't exist.
    	* morituri/common/task.py:
    	  Drag the lake.
    	  Clean up prints.

diff --git a/ChangeLog b/ChangeLog
index 591db18..06e1599 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2009-04-11  Thomas Vander Stichele  <thomas at apestaart dot org>
 
+	* examples/ARcue.py:
+	  Error out when the file doesn't exist.
+	* morituri/common/task.py:
+	  Drag the lake.
+	  Clean up prints.
+
+2009-04-11  Thomas Vander Stichele  <thomas at apestaart dot org>
+
 	* morituri/common/task.py:
 	  Remove queue to avoid race.
 	  Remove prints.
diff --git a/examples/ARcue.py b/examples/ARcue.py
index 73376fa..a71a2dc 100644
--- a/examples/ARcue.py
+++ b/examples/ARcue.py
@@ -55,9 +55,9 @@ def main(path):
                     frameLength=length * task.FRAMES_PER_DISC_FRAME)
 
         if not crctask:
-            print 'error: path %s not found' % file.path
+            print 'ERROR: path %s not found' % file.path
+            continue
 
-        print 'Analyzing', file.path, "from CD frame ", offset, length, "CD frames"
         runner = task.SyncRunner(crctask)
         runner.run()
 
diff --git a/morituri/common/task.py b/morituri/common/task.py
index edfa43d..571de87 100644
--- a/morituri/common/task.py
+++ b/morituri/common/task.py
@@ -96,7 +96,6 @@ class CRCTask(Task):
         self._first = None
         self._last = None
         self._adapter = gst.Adapter()
-        self._lake = ''
 
         self.crc = None # result
 
@@ -165,16 +164,8 @@ class CRCTask(Task):
             # FIXME: in 0.10.14.1, take_buffer leaks a ref
             buffer = self._adapter.take_buffer(SAMPLES_PER_DISC_FRAME)
 
-#        self._lake += str(buffer)
-#        i = 0
-#        while len(self._lake) >= (i + 1) * 2532:
-#            block = self._lake[i * 2532:(i + 1) * 2532]
-
             self._crc = self.do_crc_buffer(buffer, self._crc)
             self._bytes += len(buffer)
-#            i += 1
-#        if i > 0:
-#            self._lake = self._lake[i * 2532:]
 
             # update progress
             frame = self._first + self._bytes / 4

-- 
morituri packaging



More information about the pkg-multimedia-commits mailing list