From 217b731a9582098ff5d0f55b31d6405ff57496ac Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Mon, 27 Apr 2015 11:24:02 +0200 Subject: [PATCH] No need to figure out if VLC is available if we've loaded the module before --- openlp/core/ui/media/vlcplayer.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/openlp/core/ui/media/vlcplayer.py b/openlp/core/ui/media/vlcplayer.py index 97f6a53dc..e2c2ac066 100644 --- a/openlp/core/ui/media/vlcplayer.py +++ b/openlp/core/ui/media/vlcplayer.py @@ -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():