Add 'video_enabled' information to call log

This commit is contained in:
Pierre-Eric Pelloux-Prayer 2012-03-27 15:22:57 +02:00
parent 83b2a28753
commit 9a21860f49
4 changed files with 5 additions and 1 deletions

View file

@ -1337,6 +1337,7 @@ void linphone_call_start_media_streams(LinphoneCall *call, bool_t all_inputs_mut
call->current_params.has_video=FALSE;
if (call->videostream!=NULL) {
linphone_call_start_video_stream(call,cname,all_inputs_muted);
call->log->video_enabled = TRUE;
}
call->all_muted=all_inputs_muted;

View file

@ -132,6 +132,7 @@ void call_logs_write_to_config_file(LinphoneCore *lc){
lp_config_set_int(cfg,logsection,"duration",cl->duration);
if (cl->refkey) lp_config_set_string(cfg,logsection,"refkey",cl->refkey);
lp_config_set_float(cfg,logsection,"quality",cl->quality);
lp_config_set_int(cfg,logsection,"video_enabled", cl->video_enabled);
}
for(;i<lc->max_call_logs;++i){
snprintf(logsection,sizeof(logsection),"call_log_%i",i);
@ -160,6 +161,7 @@ static void call_logs_read_from_config_file(LinphoneCore *lc){
tmp=lp_config_get_string(cfg,logsection,"refkey",NULL);
if (tmp) cl->refkey=ms_strdup(tmp);
cl->quality=lp_config_get_float(cfg,logsection,"quality",-1);
cl->video_enabled=lp_config_get_int(cfg,logsection,"video_enabled",0);
lc->call_logs=ms_list_append(lc->call_logs,cl);
}else break;
}

View file

@ -153,6 +153,7 @@ typedef struct _LinphoneCallLog{
rtp_stats_t local_stats;
rtp_stats_t remote_stats;
float quality;
int video_enabled;
struct _LinphoneCore *lc;
} LinphoneCallLog;

@ -1 +1 @@
Subproject commit 992399ad92032dd5da35c84ec0a14249c8af5144
Subproject commit 513945c9781dbb9ae6905bb7fa80db2665f64d01