Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
boks1971 committed Jan 31, 2022
1 parent 53ec8fd commit b0d3bdd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rtptransceiver.go
Expand Up @@ -94,6 +94,11 @@ func (t *RTPTransceiver) hasHeaderExtension(uri string) bool {
t.mu.RLock()
defer t.mu.RUnlock()

// if nothing specific set, accept all
if len(t.headerExtensions) == 0 {
return true
}

for _, he := range t.headerExtensions {
if he.URI == uri {
return true
Expand Down

0 comments on commit b0d3bdd

Please sign in to comment.