forked from openlp/openlp
fixed vlc.py not working
This commit is contained in:
parent
7790442240
commit
60cf33f23c
@ -61,9 +61,11 @@ if VLC_AVAILABLE:
|
||||
VERSION = vlc.libvlc_get_version()
|
||||
except:
|
||||
VERSION = u'0.0.0'
|
||||
if LooseVersion(VERSION) < LooseVersion('1.1.0'):
|
||||
VLC_AVAILABLE = False
|
||||
log.debug(u'VLC could not be loaded, because the vlc version is too old: %s' % VERSION)
|
||||
#FIXME: python3 - LooseVersion does not work when a string contains letter and digits (2.0.5 Twoflower).
|
||||
# http://bugs.python.org/issue14894
|
||||
# if LooseVersion(VERSION) < LooseVersion('1.1.0'):
|
||||
# VLC_AVAILABLE = False
|
||||
# log.debug(u'VLC could not be loaded, because the vlc version is too old: %s' % VERSION)
|
||||
|
||||
AUDIO_EXT = [u'*.mp3', u'*.wav', u'*.wma', u'*.ogg']
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user