Create secondary mpv IPC Socket "mpvSyncplaySocket" by default

This commit is contained in:
Etoh 2024-02-02 12:35:38 +00:00 committed by GitHub
parent 5419358e5f
commit fa1278a4fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -420,8 +420,8 @@ class MpvPlayer(BasePlayer):
options_string = ", ".join(options) options_string = ", ".join(options)
self._listener.sendLine(["script-message-to", "syncplayintf", "set_syncplayintf_options", options_string]) self._listener.sendLine(["script-message-to", "syncplayintf", "set_syncplayintf_options", options_string])
self._setOSDPosition() self._setOSDPosition()
if self._listener.mpv_arguments.get("input-ipc-server"): publicIPCSocket = self._listener.mpv_arguments.get("input-ipc-server") if self._listener.mpv_arguments.get("input-ipc-server") else "mpvSyncplaySocket"
self._setProperty("input-ipc-server", self._listener.mpv_arguments.get("input-ipc-server")) self._setProperty("input-ipc-server", publicIPCSocket)
def _handleUnknownLine(self, line): def _handleUnknownLine(self, line):
self.mpvErrorCheck(line) self.mpvErrorCheck(line)