Remove backchannel codec from add consumer error

This commit is contained in:
Alexey Khit
2023-01-13 13:35:58 +03:00
parent b3f177e2ec
commit 09fefca712
+4
View File
@@ -242,6 +242,10 @@ func (s *Stream) removeProducer(i int) {
}
func collectCodecs(media *streamer.Media, codecs *string) {
if media.Direction == streamer.DirectionRecvonly {
return
}
for _, codec := range media.Codecs {
name := codec.Name
if name == streamer.CodecAAC {