Commit 8f31aedc authored by Sreng Jean's avatar Sreng Jean

Backport of [15513]

parent 770cdeb7
......@@ -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