summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené Stadler <mail@renestadler.de>2012-08-27 13:45:57 -0700
committerRené Stadler <mail@renestadler.de>2012-08-27 13:47:55 -0700
commitad1643a4c578ba32c4a04553391a850a16893172 (patch)
treed84f2feec8a7166efeeeed20bdfe2cc67c61d392
parent402cb844ae8107e3ea86fc6b93bd24b21eb4ba63 (diff)
timeline: small cleanup
-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 ()