Skip to content

Commit

Permalink
Fix secondary and primary MPV sockets getting conflated
Browse files Browse the repository at this point in the history
  • Loading branch information
notpeelz committed Apr 8, 2024
1 parent 648e63f commit df33187
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions syncplay/players/mpv.py
Original file line number Diff line number Diff line change
Expand Up @@ -621,8 +621,11 @@ def __init__(self, playerController, playerIPCHandler, playerPath, filePath, arg
env['PATH'] = python_executable + ':' + env['PATH']
env['PYTHONPATH'] = pythonPath
try:
socket = self.mpv_arguments.get('input-ipc-server')
self.mpvpipe = self.playerIPCHandler(mpv_location=self.playerPath, ipc_socket=socket, loglevel="info", log_handler=self.__playerController.mpv_log_handler, quit_callback=self.stop_client, env=env, **self.mpv_arguments)
self.mpvpipe = self.playerIPCHandler(
mpv_location=self.playerPath, loglevel="info",
log_handler=self.__playerController.mpv_log_handler,
quit_callback=self.stop_client, env=env,
**self.mpv_arguments)
except Exception as e:
self.quitReason = getMessage("media-player-error").format(str(e)) + " " + getMessage("mpv-failed-advice")
self.__playerController.reactor.callFromThread(self.__playerController._client.ui.showErrorMessage, self.quitReason, True)
Expand Down

0 comments on commit df33187

Please sign in to comment.