1
0
Fork 0
forked from External/mediamtx

rtmp: fix publishing from DJI FlightHub Sync (#3301) (#3504)

This commit is contained in:
Alessandro Ros 2024-07-01 16:03:12 +02:00 committed by GitHub
parent a1dc9f45f5
commit afec0cd86c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 62 additions and 2 deletions

View file

@ -182,7 +182,7 @@ func tracksFromMetadata(conn *Conn, payload []interface{}) (format.Format, forma
}
if !hasVideo && !hasAudio {
return nil, nil, fmt.Errorf("metadata doesn't contain any track")
return nil, nil, nil
}
firstReceived := false
@ -523,7 +523,9 @@ func (r *Reader) readTracks() (format.Format, format.Format, error) {
return nil, nil, err
}
return videoTrack, audioTrack, nil
if videoTrack != nil || audioTrack != nil {
return videoTrack, audioTrack, nil
}
}
}
}