Browse Source

Use strrchr to extract the file's extension

pull/2/head
Sreng Jean 20 years ago
parent
commit
67b302613d
  1. 2
      modules/demux/mod.c

2
modules/demux/mod.c

@ -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 . */

Loading…
Cancel
Save