diff --git a/openlp/core/ui/media/webkitplayer.py b/openlp/core/ui/media/webkitplayer.py index 338a1eae5..bff9cf940 100644 --- a/openlp/core/ui/media/webkitplayer.py +++ b/openlp/core/ui/media/webkitplayer.py @@ -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():