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 0ce97f6..4ea47d1 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