]> git.sesse.net Git - vlc/commitdiff
libvlc: Export libvlc_media_player_get_input_thread().
authorPierre d'Herbemont <pdherbemont@free.fr>
Fri, 29 Jan 2010 00:42:55 +0000 (01:42 +0100)
committerPierre d'Herbemont <pdherbemont@free.fr>
Fri, 29 Jan 2010 10:49:24 +0000 (11:49 +0100)
include/vlc/libvlc_media_player.h
src/control/media_player.c
src/libvlc.sym

index 2897f07cc957a7e3280cb2451e75c0b31fb6bde8..452b2adcafd42e10f8843fa06f0a43e5662c2def 100644 (file)
@@ -502,6 +502,15 @@ VLC_PUBLIC_API void    libvlc_media_player_next_frame( libvlc_media_player_t *p_
                                                        libvlc_exception_t *p_e );
 
 
+/**
+ * Access to libvlc core internal structure.
+ *
+ * This enables nasty hack. Use of this method is discouraged.
+ *
+ * \param player the libvlc_media_player_t instance
+ * \return a libvlccore input_thread_t or NULL. The actual behaviour is not specified.
+ */
+VLC_PUBLIC_API struct input_thread_t *libvlc_media_player_get_input_thread( libvlc_media_player_t *player );
 
 /**
  * Release (free) libvlc_track_description_t
index 1be7112f040ed7b6e8a0bc21b786ecc806b65d7e..971474bc92aa7b4d5a518ad5e98f7add98df7ef6 100644 (file)
@@ -1223,3 +1223,15 @@ void libvlc_media_player_next_frame( libvlc_media_player_t *p_mi, libvlc_excepti
         libvlc_printerr( "No active input" );
     }
 }
+
+/**************************************************************************
+ * get_input_thread (Public API version)
+ **************************************************************************/
+struct input_thread_t *libvlc_media_player_get_input_thread( libvlc_media_player_t *player )
+{
+    libvlc_exception_t e;
+    libvlc_exception_init(&e);
+    input_thread_t *input = libvlc_get_input_thread(player, &e);
+    clear_if_needed(&e);
+    return input;
+}
index b4d25557403b58e9b03cca119c335ad7a5607be8..305ed5a52604687466d994d91b1a529f358a40fc 100644 (file)
@@ -133,6 +133,7 @@ libvlc_media_player_get_chapter_count
 libvlc_media_player_get_chapter_count_for_title
 libvlc_media_player_get_fps
 libvlc_media_player_get_hwnd
+libvlc_media_player_get_input_thread
 libvlc_media_player_get_length
 libvlc_media_player_get_media
 libvlc_media_player_get_nsobject