rtmp: print clearer error message in case no H264/AAC tracks are found

This commit is contained in:
aler9 2021-08-31 10:41:20 +02:00
parent 450acfaf4e
commit 7ba507f205
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ func (c *Conn) ReadMetadata() (*gortsplib.Track, *gortsplib.Track, error) {
}
if !hasVideo && !hasAudio {
return nil, nil, fmt.Errorf("stream has no tracks")
return nil, nil, fmt.Errorf("stream doesn't contain tracks with supported codecs (H264 or AAC)")
}
for {