Possibly fix AttributeError problem on OSX

This commit is contained in:
Et0h 2015-03-12 08:28:10 +00:00
parent 84477934ce
commit 9c488bc132

View File

@ -311,7 +311,10 @@ class VlcPlayer(BasePlayer):
elif "lua interface error" in line:
playerController._client.ui.showErrorMessage(getMessage("media-player-error").format(line), True)
break
self.__process.stderr = subprocess.STD_ERROR_HANDLE
try:
self.__process.stderr = subprocess.STD_ERROR_HANDLE
except:
self.__playerController._client.ui.showDebugMessage("Failed to set VLC's stderr to STD_ERROR_HANDLE")
threading.Thread.__init__(self, name="VLC Listener")
asynchat.async_chat.__init__(self)
self.set_terminator("\n")