return VLC_FALSE;
}
- if ( !p_input_thread->b_die && !p_input_thread->b_dead )
- return VLC_TRUE;
-
- return VLC_FALSE;
-}
-
-vlc_bool_t libvlc_input_has_vout( libvlc_input_t *p_input,
- libvlc_exception_t *p_e )
-{
- vout_thread_t *p_vout = GetVout( p_input, p_e );
-
- /* GetVout will raise the exception for us */
- if( !p_vout )
+ if ( !p_input_thread->b_die && !p_input_thread->b_dead )
{
- return VLC_FALSE;
+ vlc_object_release( p_input_thread );
+ return VLC_TRUE;
}
-
- return VLC_TRUE;
+
+ vlc_object_release( p_input_thread );
+ return VLC_FALSE;
}
#include <vlc/vout.h>
#include <vlc/intf.h>
-vout_thread_t *GetVout( libvlc_input_t *p_input,
+static vout_thread_t *GetVout( libvlc_input_t *p_input,
libvlc_exception_t *p_exception )
{
input_thread_t *p_input_thread;
if( i_ret )
libvlc_exception_raise( p_e,
"Unexpected error while setting fullscreen value" );
+
+ vlc_object_release( p_vout1 );
+
}
int libvlc_get_fullscreen( libvlc_input_t *p_input,
if( i_ret )
libvlc_exception_raise( p_e,
"Unexpected error while setting fullscreen value" );
+
+ vlc_object_release( p_vout1 );
+
}
void
return p_vout1->i_window_width;
}
+
+vlc_bool_t libvlc_input_has_vout( libvlc_input_t *p_input,
+ libvlc_exception_t *p_e )
+{
+ vout_thread_t *p_vout = GetVout( p_input, p_e );
+
+ /* GetVout will raise the exception for us */
+ if( !p_vout )
+ {
+ return VLC_FALSE;
+ }
+
+ vlc_object_release( p_vout );
+
+ return VLC_TRUE;
+}