Commit 4f81641
committed
fix: key _simulcast_track_map by SDP MID availability, not RTP MID extension
Use mid.has_value() (SDP a=mid) as the sole condition for building the
"mid:rid" composite key in _simulcast_track_map, instead of requiring
both has_mid_extension (RTP MID header extension) and mid.has_value().
Previously, if the SDP contained a=mid but the RTP MID extension was not
negotiated, the map key was stored as "rid" while MID+RID format headers
(mid:<mid>:rid:<rid>:...) expected "mid:rid", causing a lookup mismatch.
Update comments in webrtc_stream.h and webrtc_stream.cpp to reflect that
the key condition is based on the SDP a=mid identifier, not the RTP MID
header extension.1 parent 084aeba commit 4f81641
2 files changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | | - | |
| 274 | + | |
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
283 | | - | |
| 283 | + | |
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
136 | | - | |
| 135 | + | |
| 136 | + | |
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| |||
0 commit comments