mirror of
https://github.com/Syncplay/syncplay
synced 2024-12-16 20:04:42 +00:00
Use sys.stderr over subprocess.STD_ERROR_HANDLE as it should be cross-platform compatible
This commit is contained in:
parent
9c488bc132
commit
415ceffc6d
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user