hls client: do not create audio track when there's no audio track

This commit is contained in:
aler9
2022-03-20 16:55:53 +01:00
parent 99f3215cfe
commit 56338e0084
5 changed files with 28 additions and 24 deletions

View File

@@ -103,7 +103,7 @@ func (s *hlsSource) runInner() bool {
}
}()
onTracks := func(videoTrack gortsplib.Track, audioTrack gortsplib.Track) error {
onTracks := func(videoTrack *gortsplib.TrackH264, audioTrack *gortsplib.TrackAAC) error {
var tracks gortsplib.Tracks
if videoTrack != nil {