[SCM] morituri/master: reset relative offset on SILENCE/ZERO

js at users.alioth.debian.org js at users.alioth.debian.org
Sun Oct 19 20:10:11 UTC 2014


The following commit has been merged in the master branch:
commit 879dd7f946f78143195d7a24fe90d4a3d704cc11
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date:   Sun Mar 3 23:14:39 2013 +0100

    reset relative offset on SILENCE/ZERO

diff --git a/morituri/image/toc.py b/morituri/image/toc.py
index b43ee41..7e19775 100644
--- a/morituri/image/toc.py
+++ b/morituri/image/toc.py
@@ -209,6 +209,7 @@ class TocFile(object, log.Loggable):
                 if currentFile is not None:
                     self.debug('SILENCE after FILE, increasing counter')
                     counter += 1
+                    relativeOffset = 0
                     currentFile = None
                 currentLength += common.msfToFrames(length)
 
@@ -218,6 +219,7 @@ class TocFile(object, log.Loggable):
                 if currentFile is not None:
                     self.debug('ZERO after FILE, increasing counter')
                     counter += 1
+                    relativeOffset = 0
                     currentFile = None
                 length = m.group('length')
                 currentLength += common.msfToFrames(length)

-- 
morituri packaging



More information about the pkg-multimedia-commits mailing list