mirror of
https://github.com/aler9/rtsp-simple-server
synced 2025-10-13 11:23:53 +08:00
hls client: do not create audio track when there's no audio track
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user