mirror of
https://github.com/mumble-voip/grumble.git
synced 2025-12-19 21:59:59 -08:00
Select highest codec & hex output for version numbers
The original implementation depends on Qt's behaviour that the items in a QMap are always sorted by their key.
This commit is contained in:
parent
cd750ac2bd
commit
f5bb702a9c
1 changed files with 4 additions and 1 deletions
|
|
@ -381,6 +381,9 @@ func (server *Server) updateCodecVersions() {
|
||||||
count = users
|
count = users
|
||||||
winner = codec
|
winner = codec
|
||||||
}
|
}
|
||||||
|
if users == count && codec > winner {
|
||||||
|
winner = codec
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var current int32
|
var current int32
|
||||||
|
|
@ -416,7 +419,7 @@ func (server *Server) updateCodecVersions() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Printf("CELT codec switch %v %v (PreferAlpha %v)", server.AlphaCodec, server.BetaCodec, server.PreferAlphaCodec)
|
log.Printf("CELT codec switch %#x %#x (PreferAlpha %v)", uint32(server.AlphaCodec), uint32(server.BetaCodec), server.PreferAlphaCodec)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue