Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
245e8a78
Commit
245e8a78
authored
Oct 29, 2019
by
Nicolas Michon
Browse files
Force stream reconstruction on audio device change
parent
c3dc39b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
src/conference/session/media-session.cpp
src/conference/session/media-session.cpp
+4
-0
No files found.
src/conference/session/media-session.cpp
View file @
245e8a78
...
...
@@ -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
);
}
#ifdef VIDEO_ENABLED
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment