Fix: set EDID before video init to ensure audio capability detection

This commit is contained in:
Alex P 2025-11-17 17:36:53 +02:00
parent 17f52414ac
commit 9e69a0cb97
1 changed files with 5 additions and 0 deletions

View File

@ -105,6 +105,11 @@ func (n *Native) Start() {
setInstance(n) setInstance(n)
setUpNativeHandlers() setUpNativeHandlers()
// set EDID before video init so source sees audio capabilities immediately
if err := videoSetEDID(DefaultEDID); err != nil {
n.l.Warn().Err(err).Msg("failed to set default EDID before video init")
}
// start the native video // start the native video
go n.handleLogChan() go n.handleLogChan()
go n.handleVideoStateChan() go n.handleVideoStateChan()