Adding a libvlc_media_player_next_frame
authorHugo Beauzee-Luyssen <beauze.h@gmail.com>
Thu, 13 Aug 2009 12:17:07 +0000 (14:17 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 14 Aug 2009 12:00:52 +0000 (14:00 +0200)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
include/vlc/libvlc_media_player.h
src/control/media_player.c
src/libvlc.sym

index 721742a..a880496 100644 (file)
@@ -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
  *
index a0e1175..706157e 100644 (file)
@@ -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" );
+}
index b3fab43..a44b158 100644 (file)
@@ -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