Commit 245e8a78 authored by Nicolas Michon's avatar Nicolas Michon
Browse files

Force stream reconstruction on audio device change

parent c3dc39b2
......@@ -4988,6 +4988,10 @@ LinphoneStatus MediaSession::update (const MediaSessionParams *msp, const string
if (captureCard != d->currentCaptureCard || playCard != d->currentPlayCard) {
d->forceStreamsReconstruction = true;
//Ideally this should use the same logic as video (See video_stream_change_camera)
//I.E. reconstruct only ms2 graphs without destroying the streams.
//For now, we just stop and restart audio stream with new playback/capture card
d->updateStreams(d->resultDesc, d->state);
Markdown is supported
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