mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-21 13:08:08 +00:00
Fix ringstream instanciation.
This commit is contained in:
parent
bb0d2409bd
commit
9ffab5906b
1 changed files with 4 additions and 3 deletions
|
|
@ -5579,10 +5579,11 @@ static MSFilter *get_audio_resource(LinphoneCore *lc, LinphoneAudioResourceType
|
|||
if (rtype==LinphoneLocalPlayer) return stream->local_player;
|
||||
return NULL;
|
||||
}
|
||||
if (card || lc->ringstream == NULL) {
|
||||
if (lc->ringstream)
|
||||
if (card && lc->ringstream && card != lc->ringstream->card){
|
||||
ring_stop(lc->ringstream);
|
||||
|
||||
lc->ringstream = NULL;
|
||||
}
|
||||
if (lc->ringstream == NULL) {
|
||||
float amp=lp_config_get_float(lc->config,"sound","dtmf_player_amp",0.1f);
|
||||
MSSndCard *ringcard=lc->sound_conf.lsd_card
|
||||
? lc->sound_conf.lsd_card
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue