mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
fix mpv args
https://anki.tenderapp.com/discussions/ankidesktop/38186-mpvprocesserror-unable-to-start-process
This commit is contained in:
parent
5351a5f396
commit
ccd7150136
2 changed files with 3 additions and 3 deletions
|
@ -113,9 +113,9 @@ class MPVBase:
|
||||||
"""
|
"""
|
||||||
self.argv = [self.executable]
|
self.argv = [self.executable]
|
||||||
self.argv += self.default_argv
|
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:
|
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):
|
def _start_process(self):
|
||||||
"""Start the mpv process.
|
"""Start the mpv process.
|
||||||
|
|
|
@ -283,7 +283,7 @@ class SimpleMpvPlayer(SimpleProcessPlayer, SoundOrVideoPlayer):
|
||||||
def __init__(self, taskman: TaskManager, base_folder: str) -> None:
|
def __init__(self, taskman: TaskManager, base_folder: str) -> None:
|
||||||
super().__init__(taskman)
|
super().__init__(taskman)
|
||||||
conf_path = os.path.join(base_folder, "mpv.conf")
|
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):
|
class SimpleMplayerPlayer(SimpleProcessPlayer, SoundOrVideoPlayer):
|
||||||
|
|
Loading…
Reference in a new issue