cordova-rtc / cordova-plugin-iosrtc

Cordova iOS plugin exposing the WebRTC W3C API
MIT License
690 stars 338 forks source link

PluginMediaStreamRenderer.mediaStreamChanged() has multithreading race condition #783

Open RSATom opened 5 months ago

RSATom commented 5 months ago

over PluginMediaStream.videoTracks

The problem is PluginMediaStreamRenderer.mediaStreamChanged() uses pluginMediaStream.videoTracks from main thread while iosrtcPlugin.MediaStream_removeTrack can remove tracks from thread owned by iosrtcPlugin.queue...