remove context from webrtc.PeerConnection arguments (#4854)

contexts are useless since there's already PeerConnection.Close().
This commit is contained in:
Alessandro Ros 2025-08-12 15:19:59 +02:00 committed by GitHub
parent 5ae934887d
commit b627128d0f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 157 additions and 100 deletions

View file

@ -2,7 +2,6 @@
package webrtc
import (
"context"
"fmt"
"net/http"
"net/url"
@ -62,7 +61,6 @@ func (s *Source) Run(params defs.StaticSourceRunParams) error {
URL: u,
Log: s,
}
err = client.Initialize(params.Context)
if err != nil {
return err
@ -94,7 +92,7 @@ func (s *Source) Run(params defs.StaticSourceRunParams) error {
readErr := make(chan error)
go func() {
readErr <- client.Wait(context.Background())
readErr <- client.Wait()
}()
for {