From 879dd7f946f78143195d7a24fe90d4a3d704cc11 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Sun, 3 Mar 2013 23:14:39 +0100 Subject: [PATCH] reset relative offset on SILENCE/ZERO --- morituri/image/toc.py | 2 ++ 1 file changed, 2 insertions(+) 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)