From 91fb61a6f9db1836f43bb88ea570c396d9e94e5d Mon Sep 17 00:00:00 2001
From: smorlat <smorlat@3f6dc0c8-ddfe-455d-9043-3cd528dc4637>
Date: Thu, 17 Dec 2009 14:38:30 +0000
Subject: [PATCH] fix bug in winsnd3 and flush down log to config storage.

git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@790 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
---
 linphone/coreapi/linphonecore.c       | 1 +
 linphone/mediastreamer2/src/winsnd3.c | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/linphone/coreapi/linphonecore.c b/linphone/coreapi/linphonecore.c
index 2ad34970ff..3f65082b37 100644
--- a/linphone/coreapi/linphonecore.c
+++ b/linphone/coreapi/linphonecore.c
@@ -2927,6 +2927,7 @@ void linphone_core_clear_call_logs(LinphoneCore *lc){
 	lc->missed_calls=0;
 	ms_list_for_each(lc->call_logs,(void (*)(void*))linphone_call_log_destroy);
 	lc->call_logs=ms_list_free(lc->call_logs);
+	call_logs_write_to_config_file(lc);
 }
 
 static void toggle_video_preview(LinphoneCore *lc, bool_t val){
diff --git a/linphone/mediastreamer2/src/winsnd3.c b/linphone/mediastreamer2/src/winsnd3.c
index 60e443ea96..a554a159fc 100755
--- a/linphone/mediastreamer2/src/winsnd3.c
+++ b/linphone/mediastreamer2/src/winsnd3.c
@@ -361,7 +361,7 @@ static void winsnd_read_preprocess(MSFilter *f){
 	{
 	    ms_error("Failed to prepare windows sound device. (waveInOpen:0x%i)", mr);
 		mr = waveInOpen (&d->indev, WAVE_MAPPER, &d->wfx,
-					(DWORD) read_callback, (DWORD)d, CALLBACK_FUNCTION);
+					(DWORD) read_callback, (DWORD)f, CALLBACK_FUNCTION);
 		if (mr != MMSYSERR_NOERROR)
 		{
 			d->indev=NULL;
-- 
GitLab