mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-28 08:39:20 +00:00
Merge branch 'master' of git.savannah.nongnu.org:/srv/git/linphone
This commit is contained in:
commit
14233085b0
2 changed files with 4 additions and 2 deletions
|
|
@ -673,7 +673,7 @@ void linphone_call_start_media_streams(LinphoneCall *call){
|
|||
video_stream_enable_self_view(call->videostream,lc->video_conf.selfview);
|
||||
|
||||
if (stream->dir==SalStreamSendOnly && lc->video_conf.capture ){
|
||||
cam=ms_web_cam_manager_get_cam(ms_web_cam_manager_get(),"Static picture");
|
||||
cam=ms_web_cam_manager_get_cam(ms_web_cam_manager_get(),"StaticImage: Static picture");
|
||||
dir=VideoStreamSendOnly;
|
||||
}else if (stream->dir==SalStreamRecvOnly && lc->video_conf.display ){
|
||||
dir=VideoStreamRecvOnly;
|
||||
|
|
|
|||
|
|
@ -2133,7 +2133,7 @@ int linphone_core_accept_call(LinphoneCore *lc, LinphoneCall *call)
|
|||
MSList *elem;
|
||||
for(elem=lc->calls;elem!=NULL;elem=elem->next){
|
||||
LinphoneCall *c=(LinphoneCall*)elem->data;
|
||||
if (c!=call && (c->state!=LinphoneCallPaused)){
|
||||
if (c!=call && (c->state!=LinphoneCallPaused && c->state!=LinphoneCallPausing)){
|
||||
ms_warning("Cannot accept this call as another one is running, pause it before.");
|
||||
return -1;
|
||||
}
|
||||
|
|
@ -2333,10 +2333,12 @@ int linphone_core_resume_call(LinphoneCore *lc, LinphoneCall *the_call)
|
|||
return -1;
|
||||
}
|
||||
if(linphone_core_get_current_call(lc) != NULL){
|
||||
ms_warning("There is already a call in process, pause or stop it first.");
|
||||
if (lc->vtable.display_warning)
|
||||
lc->vtable.display_warning(lc,_("There is already a call in process, pause or stop it first."));
|
||||
return -1;
|
||||
}
|
||||
ms_message("Resuming call %p",call);
|
||||
if(sal_call_hold(call->op,FALSE) != 0){
|
||||
return -1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue