Commit 573bf233 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

demux: fix path extension on non-local inputs (fixes #8115)

(cherry picked from commit d9c8170226a76420644ff1819fb3e6c4ee792e6f)
parent d70eac52
......@@ -170,10 +170,9 @@ VLC_API int demux_vaControlHelper( stream_t *, int64_t i_start, int64_t i_end, i
VLC_USED
static inline bool demux_IsPathExtension( demux_t *p_demux, const char *psz_extension )
{
if( !p_demux->psz_file )
return false;
const char *psz_ext = strrchr ( p_demux->psz_file, '.' );
const char *name = (p_demux->psz_file != NULL) ? p_demux->psz_file
: p_demux->psz_location;
const char *psz_ext = strrchr ( name, '.' );
if( !psz_ext || strcasecmp( psz_ext, psz_extension ) )
return false;
return true;
......
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