mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-06 23:48:53 +00:00
Fix division by zero crash with unparsable/colored files
This commit is contained in:
parent
d9fcd38371
commit
026604747a
1 changed files with 2 additions and 0 deletions
|
@ -550,6 +550,8 @@ class TimelineWidget (gtk.DrawingArea):
|
||||||
start_ts, end_ts = self.__position_ts_range
|
start_ts, end_ts = self.__position_ts_range
|
||||||
first_ts, last_ts = self.process.freq_sentinel.ts_range
|
first_ts, last_ts = self.process.freq_sentinel.ts_range
|
||||||
step = self.process.freq_sentinel.step
|
step = self.process.freq_sentinel.step
|
||||||
|
if step == 0:
|
||||||
|
return
|
||||||
|
|
||||||
position1 = int (float (start_ts - first_ts) / step)
|
position1 = int (float (start_ts - first_ts) / step)
|
||||||
position2 = int (float (end_ts - first_ts) / step)
|
position2 = int (float (end_ts - first_ts) / step)
|
||||||
|
|
Loading…
Reference in a new issue