Commit 4dded813 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

Remove useless NULLity checks


Signed-off-by: Rémi Denis-Courmont's avatarRémi Denis-Courmont <rem@videolan.org>
parent eb4fd245
...@@ -2201,7 +2201,7 @@ static int InputSourceInit( input_thread_t *p_input, ...@@ -2201,7 +2201,7 @@ static int InputSourceInit( input_thread_t *p_input,
{ {
psz_demux = psz_forced_demux; psz_demux = psz_forced_demux;
} }
else if( !psz_demux || *psz_demux == '\0' ) else if( *psz_demux == '\0' )
{ {
/* special hack for forcing a demuxer with --demux=module /* special hack for forcing a demuxer with --demux=module
* (and do nothing with a list) */ * (and do nothing with a list) */
...@@ -2227,9 +2227,9 @@ static int InputSourceInit( input_thread_t *p_input, ...@@ -2227,9 +2227,9 @@ static int InputSourceInit( input_thread_t *p_input,
else else
{ {
/* Preparsing is only for file:// */ /* Preparsing is only for file:// */
if( psz_demux && *psz_demux ) if( *psz_demux )
goto error; goto error;
if( !psz_access || !*psz_access ) /* path without scheme:// */ if( !*psz_access ) /* path without scheme:// */
psz_access = "file"; psz_access = "file";
if( strcmp( psz_access, "file" ) ) if( strcmp( psz_access, "file" ) )
goto error; goto error;
......
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