Skip to content

Commit

Permalink
fix: increase waiting time at startup for mpv to get ready
Browse files Browse the repository at this point in the history
On some hardware with low core count of low freqs, mpv json ipc server is not ready when radioboat create the IPCC client

fixes #3
  • Loading branch information
slashformotion committed Jul 1, 2022
1 parent cfb74cf commit 73adcfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/players/mpv.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func (m *MpvPlayer) Init() error {
}

// Waiting to be sure that mpv ipc server is ready
time.Sleep(100 * time.Millisecond)
time.Sleep(400 * time.Millisecond)
m.ipcc = mpv.NewIPCClient(fmt.Sprintf("/tmp/%s", m.socketname)) // Lowlevel client
m.client = mpv.NewClient(m.ipcc)
return nil
Expand Down

0 comments on commit 73adcfa

Please sign in to comment.