No need to figure out if VLC is available if we've loaded the module before

This commit is contained in:
Raoul Snyman 2015-04-27 11:24:02 +02:00
parent 1ad2578065
commit 217b731a95

View File

@ -62,6 +62,10 @@ def get_vlc():
:return: The "vlc" module, or None
"""
if 'openlp.core.ui.media.vendor.vlc' in sys.modules:
# If VLC has already been imported, no need to do all the stuff below again
return sys.modules['openlp.core.ui.media.vendor.vlc']
is_vlc_available = False
try:
if is_macosx():