mirror of
https://github.com/owncast/owncast.git
synced 2025-11-02 20:23:29 +08:00
Connections from Restream seem to be more sensitive about if we get the initial packets processed or not, so I moved setStreamAsConnected to be decoupled from when we set broadcaster info. Another update for #432
This commit is contained in:
@ -54,6 +54,10 @@ func getAudioCodec(codec interface{}) string {
|
||||
}
|
||||
|
||||
func getVideoCodec(codec interface{}) string {
|
||||
if codec == nil {
|
||||
return "Unknown"
|
||||
}
|
||||
|
||||
var codecID float64
|
||||
if assertedCodecID, ok := codec.(float64); ok {
|
||||
codecID = assertedCodecID
|
||||
|
||||
Reference in New Issue
Block a user