mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-03 04:52:28 +00:00
timeline: fix position rectangle missing on first click
Regression caused by previous commit.
This commit is contained in:
parent
985ef29bb3
commit
af308379b4
1 changed files with 2 additions and 3 deletions
|
@ -700,8 +700,7 @@ class TimelineWidget (gtk.DrawingArea):
|
||||||
|
|
||||||
def __have_position (self):
|
def __have_position (self):
|
||||||
|
|
||||||
if ((self.__position_ts_range is not None) and
|
if ((self.process is not None) and
|
||||||
(self.process is not None) and
|
|
||||||
(self.process.freq_sentinel is not None) and
|
(self.process.freq_sentinel is not None) and
|
||||||
(self.process.freq_sentinel.ts_range is not None)):
|
(self.process.freq_sentinel.ts_range is not None)):
|
||||||
return True
|
return True
|
||||||
|
@ -725,7 +724,7 @@ class TimelineWidget (gtk.DrawingArea):
|
||||||
|
|
||||||
def __draw_position (self, drawable, clip = None):
|
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
|
return
|
||||||
|
|
||||||
start_ts, end_ts = self.__position_ts_range
|
start_ts, end_ts = self.__position_ts_range
|
||||||
|
|
Loading…
Reference in a new issue