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

Fix media never requested again when changing again to current device



When the MediaDevicesSource node is active and a media device changes
the current stream is replaced by a stream from the new selected device.
This is an asynchronous operation, so changing the stream again on
further device changes is deferred until the previous one finished.

However, when the changed device was the same as the current device
(which should not happen, although it could potentially happen with a
specific sequence of "devicechange" events emitted by the browser) the
pending request count was not cleared and thus any further device change
was ignored until the page was reloaded.

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