Commit d09a0fbf authored by Filippo Carone's avatar Filippo Carone

libvlc enhanced:

* video height/width retrieval
* input playing status check
parent 74c5cd2a
......@@ -265,10 +265,11 @@ libvlc_input_t *libvlc_playlist_get_input( libvlc_instance_t *,
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 *);
/** @} */
......
......@@ -116,9 +116,7 @@ float libvlc_input_get_position( libvlc_input_t *p_input,
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 )
{
......@@ -141,3 +139,17 @@ vlc_bool_t libvlc_input_will_play( libvlc_input_t *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;
}
......@@ -27,7 +27,7 @@
#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;
......
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