mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-27 16:09:20 +00:00
Merge remote-tracking branch 'public/master' into tunnel
This commit is contained in:
commit
94d7f87bfa
6 changed files with 33 additions and 1 deletions
|
|
@ -966,6 +966,8 @@ static void lpc_apply_video_params(){
|
|||
#ifdef HAVE_X11_XLIB_H
|
||||
if (lpc_video_params.wid==0){ // do not manage window if embedded
|
||||
x11_apply_video_params(&lpc_video_params,wid);
|
||||
} else {
|
||||
linphone_core_show_video(linphonec, lpc_video_params.show);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
@ -1265,6 +1267,7 @@ linphonec_parse_cmdline(int argc, char **argv)
|
|||
if (arg_num < argc) {
|
||||
char *tmp;
|
||||
window_id = strtol( argv[arg_num], &tmp, 0 );
|
||||
lpc_video_params.wid = window_id;
|
||||
}
|
||||
}
|
||||
else if (old_arg_num == arg_num)
|
||||
|
|
|
|||
|
|
@ -1966,6 +1966,16 @@ void linphone_core_start_refered_call(LinphoneCore *lc, LinphoneCall *call){
|
|||
LinphoneProxyConfig * linphone_core_lookup_known_proxy(LinphoneCore *lc, const LinphoneAddress *uri){
|
||||
const MSList *elem;
|
||||
LinphoneProxyConfig *found_cfg=NULL;
|
||||
LinphoneProxyConfig *default_cfg=lc->default_proxy;
|
||||
|
||||
/*always prefer the default proxy if it is matching the destination uri*/
|
||||
if (default_cfg){
|
||||
const char *domain=linphone_proxy_config_get_domain(default_cfg);
|
||||
if (strcmp(domain,linphone_address_get_domain(uri))==0)
|
||||
return default_cfg;
|
||||
}
|
||||
|
||||
/*otherwise iterate through the other proxy config and return the first matching*/
|
||||
for (elem=linphone_core_get_proxy_config_list(lc);elem!=NULL;elem=elem->next){
|
||||
LinphoneProxyConfig *cfg=(LinphoneProxyConfig*)elem->data;
|
||||
const char *domain=linphone_proxy_config_get_domain(cfg);
|
||||
|
|
@ -3608,6 +3618,19 @@ void linphone_core_set_native_preview_window_id(LinphoneCore *lc, unsigned long
|
|||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
* Can be used to disable video showing to free XV port
|
||||
**/
|
||||
void linphone_core_show_video(LinphoneCore *lc, bool_t show){
|
||||
#ifdef VIDEO_ENABLED
|
||||
ms_error("linphone_core_show_video %d", show);
|
||||
LinphoneCall *call=linphone_core_get_current_call(lc);
|
||||
if (call!=NULL && call->videostream){
|
||||
video_stream_show_video(call->videostream,show);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
* Tells the core to use a separate window for local camera preview video, instead of
|
||||
* inserting local view within the remote video window.
|
||||
|
|
|
|||
|
|
@ -952,6 +952,9 @@ void linphone_core_use_preview_window(LinphoneCore *lc, bool_t yesno);
|
|||
int linphone_core_get_device_rotation(LinphoneCore *lc );
|
||||
void linphone_core_set_device_rotation(LinphoneCore *lc, int rotation);
|
||||
|
||||
/* start or stop streaming video in case of embedded window */
|
||||
void linphone_core_show_video(LinphoneCore *lc, bool_t show);
|
||||
|
||||
/*play/record support: use files instead of soundcard*/
|
||||
void linphone_core_use_files(LinphoneCore *lc, bool_t yesno);
|
||||
void linphone_core_set_play_file(LinphoneCore *lc, const char *file);
|
||||
|
|
|
|||
|
|
@ -2007,6 +2007,8 @@ static void register_set_contact(osip_message_t *msg, const char *contact){
|
|||
static void sal_register_add_route(osip_message_t *msg, const char *proxy){
|
||||
char tmp[256]={0};
|
||||
snprintf(tmp,sizeof(tmp)-1,"<%s;lr>",proxy);
|
||||
|
||||
osip_list_special_free(&msg->routes,(void (*)(void*))osip_route_free);
|
||||
osip_message_set_route(msg,tmp);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 4aaab3296337eb313d9b554dff1860cd23b3dbc9
|
||||
Subproject commit 8e3778f1fd61b44124f7303e540b936f9da4560f
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
# List of source files containing translatable strings.
|
||||
gtk/tunnel_config.ui
|
||||
gtk/calllogs.c
|
||||
gtk/conference.c
|
||||
gtk/logging.c
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue