rtmp: print clearer error message in case no H264/AAC tracks are found
This commit is contained in:
parent
450acfaf4e
commit
7ba507f205
|
@ -107,7 +107,7 @@ func (c *Conn) ReadMetadata() (*gortsplib.Track, *gortsplib.Track, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if !hasVideo && !hasAudio {
|
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 {
|
for {
|
||||||
|
|
Loading…
Reference in New Issue