Commit d6e7c97a authored by Sam Hocevar's avatar Sam Hocevar

* ./src/input/input.c: do not try to use stream output if the "sout" variable

    is set to the empty string (happens when doing "Apply" in a GUI).
parent 0e247961
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* decoders. * decoders.
***************************************************************************** *****************************************************************************
* Copyright (C) 1998-2002 VideoLAN * Copyright (C) 1998-2002 VideoLAN
* $Id: input.c,v 1.212 2002/08/29 23:53:22 massiot Exp $ * $Id: input.c,v 1.213 2002/10/08 16:02:05 sam Exp $
* *
* Authors: Christophe Massiot <massiot@via.ecp.fr> * Authors: Christophe Massiot <massiot@via.ecp.fr>
* *
...@@ -505,7 +505,8 @@ static int InitThread( input_thread_t * p_input ) ...@@ -505,7 +505,8 @@ static int InitThread( input_thread_t * p_input )
psz_parser = config_GetPsz( p_input, "sout" ); psz_parser = config_GetPsz( p_input, "sout" );
if ( psz_parser != NULL ) if ( psz_parser != NULL )
{ {
if ( (p_input->stream.p_sout = sout_NewInstance( p_input, psz_parser )) if ( *psz_parser &&
(p_input->stream.p_sout = sout_NewInstance( p_input, psz_parser ))
== NULL ) == NULL )
{ {
msg_Err( p_input, "cannot start stream output instance, aborting" ); msg_Err( p_input, "cannot start stream output instance, aborting" );
......
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