fix crash when calling set_play_file() while the call isn't yet established.

This commit is contained in:
Simon Morlat 2010-03-15 12:18:20 +01:00
parent 5346dfccb6
commit 2097e06808

View file

@ -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);
}
}