[vlc-commits] input: correct default value check for $demux (fixes #10475)
Rémi Denis-Courmont
git at videolan.org
Mon Mar 10 21:29:36 CET 2014
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Mar 10 22:29:13 2014 +0200| [cf0901c37f0bd0ce17177ba9f4ee578783556ac0] | committer: Rémi Denis-Courmont
input: correct default value check for $demux (fixes #10475)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cf0901c37f0bd0ce17177ba9f4ee578783556ac0
---
src/input/demux.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/input/demux.c b/src/input/demux.c
index 622f568..e887b3f 100644
--- a/src/input/demux.c
+++ b/src/input/demux.c
@@ -143,7 +143,7 @@ demux_t *demux_New( vlc_object_t *p_obj, input_thread_t *p_parent_input,
const char *psz_ext;
const char *psz_module = p_demux->psz_demux;
- if( *psz_module && p_demux->psz_file != NULL
+ if( !strcmp(psz_module, "any") && p_demux->psz_file != NULL
&& (psz_ext = strrchr( p_demux->psz_file, '.' )) != NULL )
{
psz_ext++; // skip '.'
More information about the vlc-commits
mailing list