Skip to content
Commit 7841a390 authored by Daniel Calviño Sánchez's avatar Daniel Calviño Sánchez
Browse files

Mark handling of input id changes as pending since the beginning



Before the audio and video input id changes were marked as pending only
while waiting for "getUserMedia" to finish. However, in the initial
phase of handling input id changes the tracks for the previous device
are stopped, which could cause the stream to be removed (for example, if
there was just a single active device) even if it is still referenced in
the "localStreamsChanged" array. Now handling input id changes are
marked as pending since the beginning, which prevents ended streams to
be removed while they may still be needed later.

Signed-off-by: default avatarDaniel Calviño Sánchez <danxuliu@gmail.com>
parent 3ec6a944
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment