--- gpac-git-180514.old/applications/mp4box/main.c +++ gpac-git-180514/applications/mp4box/main.c @@ -3576,7 +3576,7 @@ swf_flags = GF_SM_SWF_SPLIT_TIMELINE; #endif swf_flatten_angle = 0.0f; - tmpdir = NULL; + tmpdir = "/var/tmp"; for (i = 1; i < (u32) argc ; i++) { if (!strcmp(argv[i], "-mem-track") || !strcmp(argv[i], "-mem-track-stack")) { --- gpac-git-180514.old/configure +++ gpac-git-180514/configure @@ -13,7 +13,7 @@ elif test ! -z "$TEMPDIR" ; then TMPDIR1="${TEMPDIR}" else - TMPDIR1="/tmp" + TMPDIR1="/var/tmp" fi @@ -2221,16 +2221,12 @@ if test "$darwin" = "yes" ; then cat > $TMPC << EOF -#include -#include -int main( void ) { glEnable(GL_NORMALIZE); return 0; } +#error Disabling OpenGL EOF else cat > $TMPC << EOF -#include -#include -int main( void ) { glEnable(GL_NORMALIZE); return 0; } +#error Disabling OpenGL EOF fi --- gpac-git-180514.old/modules/redirect_av/redirect_av.c +++ gpac-git-180514/modules/redirect_av/redirect_av.c @@ -138,7 +138,7 @@ outBuff = (u8*)gf_malloc(outBuffSize* sizeof(u8)); inBuff = NULL; #ifdef DUMP_MP3 - FILE * mp3 = gf_fopen("/tmp/dump.mp3", "w"); + FILE * mp3 = gf_fopen("/var/tmp/dump.mp3", "w"); #endif /* DUMP_MP3 */ sendPts = GF_TRUE; gf_sc_add_audio_listener ( avr->term->compositor, &avr->audio_listen ); --- gpac-git-180514.old/src/utils/os_divers.c +++ gpac-git-180514/src/utils/os_divers.c @@ -1425,7 +1425,7 @@ #elif defined(WIN32) GetTempPath(GF_MAX_PATH, szPath); #else - strcpy(szPath, "/tmp"); + strcpy(szPath, "/var/tmp"); #endif root_tmp = gf_strdup(szPath);