bug(core/playback/mpv): jukebox mode under windows - navidrome#2767

Add missing params to SocketName on windows

Signed-off-by: apkatsikas <apkatsikas@gmail.com>
This commit is contained in:
apkatsikas 2024-04-14 12:53:49 -04:00
parent e7186a4d6c
commit e8a60428b7
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ import (
"github.com/google/uuid"
)
func SocketName() string {
func SocketName(prefix, suffix string) string {
// Windows needs to use a named pipe for the socket
// see https://mpv.io/manual/master#using-mpv-from-other-programs-or-scripts
return filepath.Join(`\\.\pipe\mpvsocket`, prefix+uuid.NewString()+suffix)