Commit 19db7620 authored by JP Dinger's avatar JP Dinger

WIN32: compile fix in playlist.

parent 0bae6cb9
...@@ -176,12 +176,12 @@ char *FindPrefix( demux_t *p_demux ) ...@@ -176,12 +176,12 @@ char *FindPrefix( demux_t *p_demux )
char *psz_prefix; char *psz_prefix;
const char *psz_path = p_demux->psz_path; const char *psz_path = p_demux->psz_path;
#ifndef WIN32 #ifdef WIN32
psz_file = strrchr( psz_path, '/' );
#else
psz_file = strrchr( psz_path, '\\' ); psz_file = strrchr( psz_path, '\\' );
if( !psz_file ) psz_name = strrchr( psz_path, '/' ); if( !psz_file )
#endif #endif
psz_file = strrchr( psz_path, '/' );
if( psz_file ) if( psz_file )
psz_prefix = strndup( psz_path, psz_file - psz_path + 1 ); psz_prefix = strndup( psz_path, psz_file - psz_path + 1 );
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment