Skip to content

Commit

Permalink
mediaplayer/mpv: Ensure correct parameters are passed while loading a…
Browse files Browse the repository at this point in the history
… file
  • Loading branch information
darkhz committed May 18, 2024
1 parent 67b7e6c commit e9c4450
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mediaplayer/mpv.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (m *MPV) LoadFile(title string, duration int64, audio bool, files [2]string
options = append(options, "audio-file="+files[1])
}

_, err := m.Call("loadfile", files[0], "replace", strings.Join(options, ","))
_, err := m.Call("loadfile", files[0], "replace", "-1", strings.Join(options, ","))
if err != nil {
return fmt.Errorf("MPV: Unable to load %s", title)
}
Expand Down

0 comments on commit e9c4450

Please sign in to comment.