[SCM] morituri/master: handle not having a toc
    js at users.alioth.debian.org 
    js at users.alioth.debian.org
       
    Sun Oct 19 20:08:55 UTC 2014
    
    
  
The following commit has been merged in the master branch:
commit 9841d5e2fbb81b19238607d0d28f05fce8822d1a
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date:   Mon May 4 13:48:22 2009 +0000
    handle not having a toc
diff --git a/examples/readtoc.py b/examples/readtoc.py
index 087c75c..21866e7 100644
--- a/examples/readtoc.py
+++ b/examples/readtoc.py
@@ -11,12 +11,11 @@ def main():
     runner.run(t)
     print 'runner done', t.toc
 
-    if not t.toc:
+    if not t.table:
         print 'Failed to read TOC'
         return
 
-    for track in t.toc.tracks:
-        print track._indexes
-        
+    for track in t.table.tracks:
+        print track.getIndex(1).absolute
 
 main()
-- 
morituri packaging
    
    
More information about the pkg-multimedia-commits
mailing list