forked from openlp/openlp
Patch by Samuel
This commit is contained in:
parent
33e104d57d
commit
32ff9cdeb7
@ -246,9 +246,9 @@ class MediaClipSelectorForm(QtGui.QDialog, Ui_MediaClipSelector):
|
|||||||
return
|
return
|
||||||
# Sleep 1 second to make sure VLC has the needed metadata
|
# Sleep 1 second to make sure VLC has the needed metadata
|
||||||
self.vlc_media_player.audio_set_mute(True)
|
self.vlc_media_player.audio_set_mute(True)
|
||||||
sleep(1)
|
#sleep(1)
|
||||||
self.vlc_media_player.set_pause(1)
|
#self.vlc_media_player.set_pause(1)
|
||||||
self.vlc_media_player.set_time(0)
|
#self.vlc_media_player.set_time(0)
|
||||||
if not self.audio_cd:
|
if not self.audio_cd:
|
||||||
# Get titles, insert in combobox
|
# Get titles, insert in combobox
|
||||||
titles = self.vlc_media_player.video_get_title_description()
|
titles = self.vlc_media_player.video_get_title_description()
|
||||||
@ -401,10 +401,10 @@ class MediaClipSelectorForm(QtGui.QDialog, Ui_MediaClipSelector):
|
|||||||
return
|
return
|
||||||
self.vlc_media_player.audio_set_mute(True)
|
self.vlc_media_player.audio_set_mute(True)
|
||||||
# Sleep 1 second to make sure VLC has the needed metadata
|
# Sleep 1 second to make sure VLC has the needed metadata
|
||||||
sleep(1)
|
#sleep(1)
|
||||||
# pause
|
# pause
|
||||||
self.vlc_media_player.set_time(0)
|
self.vlc_media_player.set_time(0)
|
||||||
self.vlc_media_player.set_pause(1)
|
#self.vlc_media_player.set_pause(1)
|
||||||
# Get audio tracks, insert in combobox
|
# Get audio tracks, insert in combobox
|
||||||
audio_tracks = self.vlc_media_player.audio_get_track_description()
|
audio_tracks = self.vlc_media_player.audio_get_track_description()
|
||||||
self.audio_tracks_combobox.clear()
|
self.audio_tracks_combobox.clear()
|
||||||
@ -444,6 +444,7 @@ class MediaClipSelectorForm(QtGui.QDialog, Ui_MediaClipSelector):
|
|||||||
while self.vlc_media_player.get_state() == vlc.State.Playing and loop_count < 20:
|
while self.vlc_media_player.get_state() == vlc.State.Playing and loop_count < 20:
|
||||||
sleep(0.1)
|
sleep(0.1)
|
||||||
self.vlc_media_player.set_pause(1)
|
self.vlc_media_player.set_pause(1)
|
||||||
|
loop_count += 1
|
||||||
log.debug('title_combo_box end - vlc_media_player state: %s' % self.vlc_media_player.get_state())
|
log.debug('title_combo_box end - vlc_media_player state: %s' % self.vlc_media_player.get_state())
|
||||||
|
|
||||||
@QtCore.pyqtSlot(int)
|
@QtCore.pyqtSlot(int)
|
||||||
|
Loading…
Reference in New Issue
Block a user