Attempt to fix a webkit player exception

This commit is contained in:
Tomas Groth 2015-03-15 22:34:12 +00:00
parent d74f2c05ff
commit e34179795b
1 changed files with 1 additions and 1 deletions

View File

@ -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():