[vlc-devel] commit: Adding a libvlc_media_player_next_frame (Hugo Beauzee-Luyssen )
git version control
git at videolan.org
Fri Aug 14 14:04:30 CEST 2009
vlc | branch: master | Hugo Beauzee-Luyssen <beauze.h at gmail.com> | Thu Aug 13 14:17:07 2009 +0200| [8cc189576827a40441e05d3e72c2aa8f3520328b] | committer: Jean-Baptiste Kempf
Adding a libvlc_media_player_next_frame
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8cc189576827a40441e05d3e72c2aa8f3520328b
---
include/vlc/libvlc_media_player.h | 12 ++++++++++++
src/control/media_player.c | 9 +++++++++
src/libvlc.sym | 1 +
3 files changed, 22 insertions(+), 0 deletions(-)
diff --git a/include/vlc/libvlc_media_player.h b/include/vlc/libvlc_media_player.h
index 721742a..a880496 100644
--- a/include/vlc/libvlc_media_player.h
+++ b/include/vlc/libvlc_media_player.h
@@ -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
*
diff --git a/src/control/media_player.c b/src/control/media_player.c
index a0e1175..706157e 100644
--- a/src/control/media_player.c
+++ b/src/control/media_player.c
@@ -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" );
+}
diff --git a/src/libvlc.sym b/src/libvlc.sym
index b3fab43..a44b158 100644
--- a/src/libvlc.sym
+++ b/src/libvlc.sym
@@ -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
More information about the vlc-devel
mailing list