fix mpv args
https://anki.tenderapp.com/discussions/ankidesktop/38186-mpvprocesserror-unable-to-start-process
This commit is contained in:
parent
5351a5f396
commit
ccd7150136
@ -113,9 +113,9 @@ class MPVBase:
|
||||
"""
|
||||
self.argv = [self.executable]
|
||||
self.argv += self.default_argv
|
||||
self.argv += ["--input-ipc-server", self._sock_filename]
|
||||
self.argv += ["--input-ipc-server="+self._sock_filename]
|
||||
if self.window_id is not None:
|
||||
self.argv += ["--wid", str(self.window_id)]
|
||||
self.argv += ["--wid="+str(self.window_id)]
|
||||
|
||||
def _start_process(self):
|
||||
"""Start the mpv process.
|
||||
|
@ -283,7 +283,7 @@ class SimpleMpvPlayer(SimpleProcessPlayer, SoundOrVideoPlayer):
|
||||
def __init__(self, taskman: TaskManager, base_folder: str) -> None:
|
||||
super().__init__(taskman)
|
||||
conf_path = os.path.join(base_folder, "mpv.conf")
|
||||
self.args += ["--no-config", "--include=" + conf_path]
|
||||
self.args += ["--include=" + conf_path]
|
||||
|
||||
|
||||
class SimpleMplayerPlayer(SimpleProcessPlayer, SoundOrVideoPlayer):
|
||||
|
Loading…
Reference in New Issue
Block a user