mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-20 02:00:05 -08:00
hls client: do not create audio track when there's no audio track
This commit is contained in:
parent
99f3215cfe
commit
56338e0084
5 changed files with 28 additions and 24 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue