~gjabell/ko unlisted

3b82722bbda6defa2214c63150bbfb3789e0bdb1 — Galen Abell 5 months ago 6307a4f
mpv: Reset to unpaused when playing a new file
1 files changed, 5 insertions(+), 1 deletions(-)

M backend/mpv.go
M backend/mpv.go => backend/mpv.go +5 -1
@@ 52,7 52,11 @@ func (m *MpvBackend) start() error {
	logger.Printf("Starting new mpv instance on %s\n", m.socket())

	ipc := fmt.Sprintf("--input-ipc-server=%s", m.socket())
	args := append([]string{"--idle", ipc}, m.additionalArgs...)
	args := append([]string{
		"--idle",
		ipc,
		"--reset-on-next-file=pause",
	}, m.additionalArgs...)
	cmd := exec.Command(m.MpvPath, args...)
	if err := cmd.Start(); err != nil {
		return err