forked from openlp/openlp
Make it possible to break out of waiting loop
This commit is contained in:
parent
88e4c2e0b9
commit
af6a5322e2
|
@ -451,6 +451,7 @@ class MediaClipSelectorForm(QtGui.QDialog, Ui_MediaClipSelector, RegistryPropert
|
|||
while self.playback_length == 0 and loop_count < 20:
|
||||
sleep(0.1)
|
||||
self.playback_length = self.vlc_media_player.get_length()
|
||||
loop_count += 1
|
||||
log.debug('in loop, playback_length: %d ms' % self.playback_length)
|
||||
self.position_slider.setMaximum(self.playback_length)
|
||||
# setup start and end time
|
||||
|
|
Loading…
Reference in New Issue