void libvlc_input_free( libvlc_input_t * );
/// \bug This might go away ... to be replaced by a broader system
-vlc_int64_t libvlc_input_get_length( libvlc_input_t *, libvlc_exception_t *);
-vlc_int64_t libvlc_input_get_time( libvlc_input_t *, libvlc_exception_t *);
-float libvlc_input_get_position( libvlc_input_t *, libvlc_exception_t *);
-vlc_bool_t libvlc_input_will_play( libvlc_input_t *, libvlc_exception_t *);
+vlc_int64_t libvlc_input_get_length ( libvlc_input_t *, libvlc_exception_t *);
+vlc_int64_t libvlc_input_get_time ( libvlc_input_t *, libvlc_exception_t *);
+float libvlc_input_get_position ( libvlc_input_t *, libvlc_exception_t *);
+vlc_bool_t libvlc_input_will_play ( libvlc_input_t *, libvlc_exception_t *);
+vlc_bool_t libvlc_input_has_vout ( libvlc_input_t *, libvlc_exception_t *);
/** @} */
vlc_bool_t libvlc_input_will_play( libvlc_input_t *p_input,
libvlc_exception_t *p_exception)
{
-
input_thread_t *p_input_thread;
- vlc_value_t val;
if( !p_input )
{
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 )
+ {
+ return VLC_FALSE;
+ }
+
+ return VLC_TRUE;
+}
#include <vlc/vout.h>
#include <vlc/intf.h>
-static vout_thread_t *GetVout( libvlc_input_t *p_input,
+vout_thread_t *GetVout( libvlc_input_t *p_input,
libvlc_exception_t *p_exception )
{
input_thread_t *p_input_thread;