Make it possible to break out of waiting loop

This commit is contained in:
Tomas Groth 2014-11-04 12:58:03 +01:00
parent 88e4c2e0b9
commit af6a5322e2
1 changed files with 1 additions and 0 deletions

View File

@ -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