Commit 3eba2b7d authored by Jean-Paul Saman's avatar Jean-Paul Saman

Return sane state value when no input is present.

parent 367e43f7
......@@ -218,7 +218,7 @@ int libvlc_input_get_state( libvlc_input_t *p_input,
p_input_thread = libvlc_get_input_thread ( p_input, p_e );
if ( libvlc_exception_raised( p_e ) )
return 6; /* Return ERROR_S (see include/vlc_input.c) */
return 0;
var_Get( p_input_thread, "state", &val );
vlc_object_release( p_input_thread );
......
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