Skip to content

Commit

Permalink
Merge pull request #1448 from edenhaus/imporve-codec-not-matched-error
Browse files Browse the repository at this point in the history
Improve codec not matched error by including kind
  • Loading branch information
AlexxIT authored Nov 11, 2024
2 parents 172437b + 9ee8174 commit 80ac0ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/streams/add_consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,15 +135,15 @@ func formatError(consMedias, prodMedias []*core.Media, prodErrors []error) error
for _, media := range prodMedias {
if media.Direction == core.DirectionRecvonly {
for _, codec := range media.Codecs {
prod = appendString(prod, codec.PrintName())
prod = appendString(prod, media.Kind+":"+codec.PrintName())
}
}
}

for _, media := range consMedias {
if media.Direction == core.DirectionSendonly {
for _, codec := range media.Codecs {
cons = appendString(cons, codec.PrintName())
cons = appendString(cons, media.Kind+":"+codec.PrintName())
}
}
}
Expand Down

0 comments on commit 80ac0ab

Please sign in to comment.