Use sys.stderr over subprocess.STD_ERROR_HANDLE as it should be cross-platform compatible

This commit is contained in:
Et0h 2015-03-12 08:58:45 +00:00
parent 9c488bc132
commit 415ceffc6d

View File

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