diff options
author | René Stadler <mail@renestadler.de> | 2012-09-24 02:23:22 +0200 |
---|---|---|
committer | René Stadler <mail@renestadler.de> | 2012-09-24 02:24:56 +0200 |
commit | 73746f445028d0bd4bd21c22a61e5b4f45f9fdba (patch) | |
tree | f811648736db2e5dfa66fe26535db4d55db30fc6 /GstDebugViewer | |
parent | c7f03f8657ef9bdf550c52b567e1c9454fdbae7a (diff) |
timeline: fix position rectangle missing on first click
Regression caused by previous commit.
Diffstat (limited to 'GstDebugViewer')
-rw-r--r-- | GstDebugViewer/Plugins/Timeline.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/GstDebugViewer/Plugins/Timeline.py b/GstDebugViewer/Plugins/Timeline.py index 9566ea1..9435554 100644 --- a/GstDebugViewer/Plugins/Timeline.py +++ b/GstDebugViewer/Plugins/Timeline.py @@ -700,8 +700,7 @@ class TimelineWidget (gtk.DrawingArea): def __have_position (self): - if ((self.__position_ts_range is not None) and - (self.process is not None) and + if ((self.process is not None) and (self.process.freq_sentinel is not None) and (self.process.freq_sentinel.ts_range is not None)): return True @@ -725,7 +724,7 @@ class TimelineWidget (gtk.DrawingArea): def __draw_position (self, drawable, clip = None): - if not self.__have_position (): + if not self.__have_position () or self.__position_ts_range is None: return start_ts, end_ts = self.__position_ts_range |