mirror of
https://github.com/pion/webrtc.git
synced 2025-09-27 03:25:58 +08:00
Use a full API pointer instead of settingEngine
This replaces context pointers in many RTC objects (to be more consistent) Relates to #333
This commit is contained in:

committed by
Michiel De Backker

parent
3aee69ea60
commit
9458d58a04
@@ -15,7 +15,7 @@ func TestSettingEngine(t *testing.T) {
|
||||
t.Fatalf("SettingEngine defaults aren't as expected.")
|
||||
}
|
||||
|
||||
dc := &RTCDataChannel{settingEngine: &api.settingEngine}
|
||||
dc := &RTCDataChannel{api: api}
|
||||
_, err := dc.Detach()
|
||||
|
||||
if err == nil {
|
||||
@@ -41,7 +41,7 @@ func TestSettingEngine(t *testing.T) {
|
||||
|
||||
api.settingEngine.DetachDataChannels()
|
||||
|
||||
dc = &RTCDataChannel{settingEngine: &api.settingEngine}
|
||||
dc = &RTCDataChannel{api: api}
|
||||
_, err = dc.Detach()
|
||||
|
||||
if err == nil {
|
||||
|
Reference in New Issue
Block a user