Skip to content

Commit 80ac0ab

Browse files
authored
Merge pull request #1448 from edenhaus/imporve-codec-not-matched-error
Improve codec not matched error by including kind
2 parents 172437b + 9ee8174 commit 80ac0ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/streams/add_consumer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,15 +135,15 @@ func formatError(consMedias, prodMedias []*core.Media, prodErrors []error) error
135135
for _, media := range prodMedias {
136136
if media.Direction == core.DirectionRecvonly {
137137
for _, codec := range media.Codecs {
138-
prod = appendString(prod, codec.PrintName())
138+
prod = appendString(prod, media.Kind+":"+codec.PrintName())
139139
}
140140
}
141141
}
142142

143143
for _, media := range consMedias {
144144
if media.Direction == core.DirectionSendonly {
145145
for _, codec := range media.Codecs {
146-
cons = appendString(cons, codec.PrintName())
146+
cons = appendString(cons, media.Kind+":"+codec.PrintName())
147147
}
148148
}
149149
}

0 commit comments

Comments
 (0)