Commit 67b30261 authored by Sreng Jean's avatar Sreng Jean

Use strrchr to extract the file's extension

parent 1eefa7ea
......@@ -140,7 +140,7 @@ static int Open( vlc_object_t *p_this )
/* We accept file based on extension match */
if( strcasecmp( p_demux->psz_demux, "mod" ) )
{
if( ( ext = strchr( p_demux->psz_path, '.' ) ) == NULL ||
if( ( ext = strrchr( p_demux->psz_path, '.' ) ) == NULL ||
stream_Size( p_demux->s ) == 0 ) return VLC_EGENERIC;
ext++; /* skip . */
......
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