[vlc-devel] commit: WIN32: compile fix in playlist. (JP Dinger )
git version control
git at videolan.org
Wed May 27 10:43:27 CEST 2009
vlc | branch: master | JP Dinger <jpd at videolan.org> | Wed May 27 10:16:42 2009 +0200| [19db76208e91021d6ae81521c5a2b9dbf9d6e93c] | committer: JP Dinger
WIN32: compile fix in playlist.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=19db76208e91021d6ae81521c5a2b9dbf9d6e93c
---
modules/demux/playlist/playlist.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/demux/playlist/playlist.c b/modules/demux/playlist/playlist.c
index ca238ab..410c13e 100644
--- a/modules/demux/playlist/playlist.c
+++ b/modules/demux/playlist/playlist.c
@@ -176,12 +176,12 @@ char *FindPrefix( demux_t *p_demux )
char *psz_prefix;
const char *psz_path = p_demux->psz_path;
-#ifndef WIN32
- psz_file = strrchr( psz_path, '/' );
-#else
+#ifdef WIN32
psz_file = strrchr( psz_path, '\\' );
- if( !psz_file ) psz_name = strrchr( psz_path, '/' );
+ if( !psz_file )
#endif
+ psz_file = strrchr( psz_path, '/' );
+
if( psz_file )
psz_prefix = strndup( psz_path, psz_file - psz_path + 1 );
else
More information about the vlc-devel
mailing list