Commit 8cc18957 authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen Committed by Jean-Baptiste Kempf
Browse files

Adding a libvlc_media_player_next_frame



Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 03d676ff
......@@ -482,6 +482,18 @@ VLC_PUBLIC_API int libvlc_media_player_is_seekable( libvlc_media_player_t *p_mi,
*/
VLC_PUBLIC_API int libvlc_media_player_can_pause( libvlc_media_player_t *p_mi, libvlc_exception_t *p_e );
/**
* Display the next frame
*
* \param p_input the libvlc_media_player_t instance
* \param p_e an initialized exception pointer
*/
VLC_PUBLIC_API void libvlc_media_player_next_frame( libvlc_media_player_t *p_input,
libvlc_exception_t *p_e );
/**
* Release (free) libvlc_track_description_t
*
......
......@@ -1240,3 +1240,12 @@ int libvlc_media_player_can_pause( libvlc_media_player_t *p_mi,
return val.b_bool;
}
void libvlc_media_player_next_frame( libvlc_media_player_t *p_mi, libvlc_exception_t *p_e )
{
input_thread_t *p_input_thread = libvlc_get_input_thread ( p_mi, p_e );
if( p_input_thread != NULL )
var_TriggerCallback( p_input_thread, "frame-next" );
else
libvlc_exception_raise( p_e, "Input thread is NULL" );
}
......@@ -121,6 +121,7 @@ libvlc_media_new
libvlc_media_new_as_node
libvlc_media_new_from_input_item
libvlc_media_player_can_pause
libvlc_media_player_next_frame
libvlc_media_player_event_manager
libvlc_media_player_get_agl
libvlc_media_player_get_chapter
......
Supports Markdown
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