Commit a10792f2 authored by Filippo Carone's avatar Filippo Carone

libvlc_input_has_vout more consistent with function aim

parent 7a6f4c91
...@@ -197,10 +197,12 @@ vlc_bool_t libvlc_input_has_vout( libvlc_input_t *p_input, ...@@ -197,10 +197,12 @@ vlc_bool_t libvlc_input_has_vout( libvlc_input_t *p_input,
libvlc_exception_t *p_e ) libvlc_exception_t *p_e )
{ {
vout_thread_t *p_vout = GetVout( p_input, p_e ); vout_thread_t *p_vout = GetVout( p_input, p_e );
if ( libvlc_exception_raised( p_e ) )
/* GetVout will raise the exception for us */
if( !p_vout )
{ {
if ( strcmp( "No active video output", libvlc_exception_get_message( p_e ) ) == 0 )
{
libvlc_exception_clear( p_e );
}
return VLC_FALSE; return VLC_FALSE;
} }
......
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