From 2097e06808d135a3b2cb01f93a3b6dcfeb921d36 Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Mon, 15 Mar 2010 12:18:20 +0100 Subject: [PATCH] fix crash when calling set_play_file() while the call isn't yet established. --- coreapi/linphonecore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index 3c3eb3598..1ed8b9428 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -3133,7 +3133,7 @@ void linphone_core_set_play_file(LinphoneCore *lc, const char *file){ } if (file!=NULL) { lc->play_file=ms_strdup(file); - if (lc->audiostream) + if (lc->audiostream->ticker) audio_stream_play(lc->audiostream,file); } }