Behave a little better with unparsable/colored files
authorRené Stadler <mail@renestadler.de>
Thu, 29 Nov 2007 13:25:31 +0000 (15:25 +0200)
committerStefan Sauer <ensonic@users.sf.net>
Thu, 11 Sep 2014 18:51:41 +0000 (20:51 +0200)
debug-viewer/GstDebugViewer/Plugins/Timeline.py

index 0ce97f6a34891bcc62decf83bd91ad0a4d2d267e..4ea47d127ded5807c0c71794e7fdba92b3c5c740 100644 (file)
@@ -121,6 +121,10 @@ class LineFrequencySentinel (object):
             first_index = found
             target_ts += step
 
+        if step == 0:
+            result = []
+            partitions = []
+
         self.step = step
         self.data = result
         self.partitions = partitions