summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--GstDebugViewer/Plugins/Timeline.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/GstDebugViewer/Plugins/Timeline.py b/GstDebugViewer/Plugins/Timeline.py
index 26fa4ed..891cab0 100644
--- a/GstDebugViewer/Plugins/Timeline.py
+++ b/GstDebugViewer/Plugins/Timeline.py
@@ -519,12 +519,11 @@ class TimelineWidget (gtk.DrawingArea):
self.model = model
- width = self.get_allocation ()[2]
-
self.process.abort ()
- if model:
+ if model is not None:
self.process.freq_sentinel = LineFrequencySentinel (model)
self.process.dist_sentinel = LevelDistributionSentinel (self.process.freq_sentinel, model)
+ width = self.get_allocation ()[2]
self.process.freq_sentinel.run_for (width)
self.process.run ()