forked from openlp/openlp
Remove unused varable
This commit is contained in:
parent
ee126c9924
commit
d58efe2282
@ -56,7 +56,6 @@ class MediaController(object):
|
|||||||
# Timer for video state
|
# Timer for video state
|
||||||
self.timer = QtCore.QTimer()
|
self.timer = QtCore.QTimer()
|
||||||
self.timer.setInterval(200)
|
self.timer.setInterval(200)
|
||||||
self.withLivePreview = False
|
|
||||||
self.check_available_media_players()
|
self.check_available_media_players()
|
||||||
# Signals
|
# Signals
|
||||||
QtCore.QObject.connect(self.timer,
|
QtCore.QObject.connect(self.timer,
|
||||||
@ -260,9 +259,6 @@ class MediaController(object):
|
|||||||
# update player status
|
# update player status
|
||||||
self.set_active_players()
|
self.set_active_players()
|
||||||
display.hasAudio = True
|
display.hasAudio = True
|
||||||
if not self.withLivePreview and \
|
|
||||||
display == self.parent.liveController.previewDisplay:
|
|
||||||
return
|
|
||||||
if display == self.parent.previewController.previewDisplay or \
|
if display == self.parent.previewController.previewDisplay or \
|
||||||
display == self.parent.liveController.previewDisplay:
|
display == self.parent.liveController.previewDisplay:
|
||||||
display.hasAudio = False
|
display.hasAudio = False
|
||||||
@ -307,7 +303,7 @@ class MediaController(object):
|
|||||||
controller.media_info.is_background = isBackground
|
controller.media_info.is_background = isBackground
|
||||||
display = None
|
display = None
|
||||||
if controller.isLive:
|
if controller.isLive:
|
||||||
if self.withLivePreview and controller.previewDisplay:
|
if controller.previewDisplay:
|
||||||
display = controller.previewDisplay
|
display = controller.previewDisplay
|
||||||
isValid = self.check_file_type(controller, display)
|
isValid = self.check_file_type(controller, display)
|
||||||
display = controller.display
|
display = controller.display
|
||||||
|
@ -1349,7 +1349,7 @@ class SlideController(Controller):
|
|||||||
"""
|
"""
|
||||||
log.debug(u'SlideController onMediaStart')
|
log.debug(u'SlideController onMediaStart')
|
||||||
self.mediaController.video(self, item, False, False, self.hideMode())
|
self.mediaController.video(self, item, False, False, self.hideMode())
|
||||||
if not self.isLive or self.mediaController.withLivePreview:
|
if not self.isLive:
|
||||||
self.previewDisplay.show()
|
self.previewDisplay.show()
|
||||||
self.slidePreview.hide()
|
self.slidePreview.hide()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user