Commit 7d9fc126 authored by massiot's avatar massiot

* dvblast.c: Fix segfault when no input option is passed.


git-svn-id: svn://svn.videolan.org/dvblast/trunk@97 55d3f8b6-4a41-4d2d-a900-313d1436a5b8
parent 8f8889a7
......@@ -276,7 +276,7 @@ static void ReadConfiguration( char *psz_file )
for ( i = 0; i < i_nb_outputs; i++ )
{
if ( ( pp_outputs[i]->i_config & OUTPUT_VALID ) &&
if ( ( pp_outputs[i]->i_config & OUTPUT_VALID ) &&
!( pp_outputs[i]->i_config & OUTPUT_STILL_PRESENT ) )
{
msg_Dbg( NULL, "closing %s", pp_outputs[i]->psz_displayname );
......@@ -608,7 +608,7 @@ int main( int i_argc, char **pp_argv )
usage();
}
}
if ( optind < i_argc )
if ( optind < i_argc || pf_Open == NULL )
usage();
msg_Warn( NULL, "restarting" );
......
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