From 6d6f71049fc334d07cf4718f896230f00b9215a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Stadler?= Date: Mon, 27 Aug 2012 13:45:57 -0700 Subject: [PATCH] timeline: small cleanup --- debug-viewer/GstDebugViewer/Plugins/Timeline.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/debug-viewer/GstDebugViewer/Plugins/Timeline.py b/debug-viewer/GstDebugViewer/Plugins/Timeline.py index 26fa4ed03e..891cab06ea 100644 --- a/debug-viewer/GstDebugViewer/Plugins/Timeline.py +++ b/debug-viewer/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 ()