Skip to content

Commit

Permalink
Pass -- to mpv/mplayer before filename (#3219)
Browse files Browse the repository at this point in the history
* Pass -- to mpv/mplayer before filename

* Pass -- in as a separate argument (dae)
  • Loading branch information
abdnh authored Jun 1, 2024
1 parent 06f7aa3 commit 8d2e8b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qt/aqt/sound.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ def stop(self) -> None:
def _play(self, tag: AVTag) -> None:
assert isinstance(tag, SoundOrVideoTag)
self._process = subprocess.Popen(
self.args + [tag.filename],
self.args + ["--", tag.filename],
env=self.env,
cwd=self._media_folder,
stdout=subprocess.DEVNULL,
Expand Down Expand Up @@ -478,7 +478,7 @@ def _play(self, tag: AVTag) -> None:
filename = hooks.media_file_filter(tag.filename)

self._process = subprocess.Popen(
self.args + [filename],
self.args + ["--", filename],
env=self.env,
cwd=self.media_folder,
stdin=subprocess.PIPE,
Expand Down

0 comments on commit 8d2e8b1

Please sign in to comment.