Make the "Call recording" tester to save the recording file in another place for Android

This commit is contained in:
François Grisez 2014-08-05 17:19:52 +02:00
parent dd07464872
commit ad65819eb1

View file

@ -2670,15 +2670,20 @@ static void recording_call() {
LinphoneCallParams *paulineParams = linphone_core_create_default_call_parameters(pauline->lc);
LinphoneCall *callInst = NULL;
int dummy=0;
char *filepath = NULL;
#ifdef ANDROID
const char dirname[] = "/data/data/org.linphone.tester/files/.test";
#else
const char dirname[] = ".test";
#endif
#ifdef VIDEO_ENABLED
const char filename[] = "recording.mkv";
#else
const char filename[] = "recording.wav";
#endif
const char dirname[] = ".test";
char *filepath = NULL;
filepath = ms_new0(char, strlen(dirname) + strlen(filename) + 2);
strcpy(filepath, dirname);
strcat(filepath, "/");