mirror of https://gitlab.com/openlp/openlp.git
Attempt to fix a webkit player exception
This commit is contained in:
parent
d74f2c05ff
commit
e34179795b
|
@ -375,7 +375,7 @@ class WebkitPlayer(MediaPlayer):
|
|||
# check if conversion was ok and value is not 'NaN'
|
||||
if length and length != float('inf'):
|
||||
length = int(length * 1000)
|
||||
if current_time:
|
||||
if current_time and length:
|
||||
controller.media_info.length = length
|
||||
controller.seek_slider.setMaximum(length)
|
||||
if not controller.seek_slider.isSliderDown():
|
||||
|
|
Loading…
Reference in New Issue