Ignore unknown mime in dynacast manager. (#3419)

Actually, was caused by down track not initialising mime, but it is good
to ignore unknown mime.

Also, added ulpfec sa SDP has that and there was a conversion which was
returning unknown. Also, note that the mime types use audio for RED and
video for flexfec and ulpfec although they are not media type dependent.
Maybe, at point need to introduce `MimeTypeAudioRED` and
`MimeTypeVideoRED`.
This commit is contained in:
Raja Subramanian
2025-02-10 14:56:52 +05:30
committed by GitHub
parent 3da7de76c7
commit 65d30d9e43
3 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -187,7 +187,7 @@ func (d *DynacastManager) getOrCreateDynacastQuality(mimeType mime.MimeType) *Dy
d.lock.Lock()
defer d.lock.Unlock()
if d.isClosed {
if d.isClosed || mimeType == mime.MimeTypeUnknown {
return nil
}