X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Finput%2Fes_out_timeshift.c;h=c12d73ad496dd7e8313fa4c7809ace09a64c02c2;hb=50428add90c1ae5198b811feb7e26670d5b5709b;hp=4f5db4fbd6eb431841ebec0edb3f0accfdf2b09f;hpb=a7b2dcf0ee052630b5469fb2dac652d307e0784c;p=vlc diff --git a/src/input/es_out_timeshift.c b/src/input/es_out_timeshift.c index 4f5db4fbd6..c12d73ad49 100644 --- a/src/input/es_out_timeshift.c +++ b/src/input/es_out_timeshift.c @@ -31,17 +31,15 @@ #include #include #include -#if defined (WIN32) +#if defined (_WIN32) # include #endif #include -#ifdef HAVE_UNISTD_H -# include -#endif +#include #include #include -#ifdef WIN32 +#ifdef _WIN32 # include #endif #include @@ -1199,7 +1197,7 @@ static void TsStoragePopCmd( ts_storage_t *p_storage, ts_cmd_t *p_cmd, bool b_fl } else { - //fprintf( stderr, "TsStoragePopCmd: %m\n" ); + //perror( "TsStoragePopCmd" ); p_cmd->u.send.p_block = block_Alloc( 1 ); } } @@ -1371,7 +1369,8 @@ static int CmdInitControl( ts_cmd_t *p_cmd, int i_query, va_list args, bool b_co vlc_epg_AddEvent( p_cmd->u.control.u.int_epg.p_epg, p_evt->i_start, p_evt->i_duration, p_evt->psz_name, - p_evt->psz_short_description, p_evt->psz_description ); + p_evt->psz_short_description, + p_evt->psz_description, 0 ); } vlc_epg_SetCurrent( p_cmd->u.control.u.int_epg.p_epg, p_epg->p_current ? p_epg->p_current->i_start : -1 ); @@ -1552,7 +1551,7 @@ static char *GetTmpPath( char *psz_path ) free( psz_path ); /* Create a suitable path */ -#if defined (WIN32) +#if defined (_WIN32) && !VLC_WINSTORE_APP const DWORD dwCount = GetTempPathW( 0, NULL ); wchar_t *psw_path = calloc( dwCount + 1, sizeof(wchar_t) ); if( psw_path ) @@ -1595,7 +1594,7 @@ static FILE *GetTmpFile( char **ppsz_file, const char *psz_path ) /* */ *ppsz_file = NULL; - if( asprintf( &psz_name, "%s/vlc-timeshift.XXXXXX", psz_path ) < 0 ) + if( asprintf( &psz_name, "%s"DIR_SEP"vlc-timeshift.XXXXXX", psz_path ) < 0 ) return NULL; /* */