]> git.sesse.net Git - vlc/commitdiff
Added vout_GetSpu to retreive the spu_t object from the vout.
authorLaurent Aimar <fenrir@videolan.org>
Sun, 31 May 2009 00:00:28 +0000 (02:00 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Sun, 31 May 2009 00:00:28 +0000 (02:00 +0200)
It will allow hiding vout_thread_t fields.

include/vlc_vout.h
src/libvlccore.sym
src/video_output/video_output.c

index 4a706fcfd4172f5ea8183317685c033a76b228fe..0d64ccbefb5d3563959fbcb135349f0ac3c8ff8a 100644 (file)
@@ -310,6 +310,15 @@ VLC_EXPORT( void,            vout_LinkPicture,    ( vout_thread_t *, picture_t *
 VLC_EXPORT( void,            vout_UnlinkPicture,  ( vout_thread_t *, picture_t * ) );
 VLC_EXPORT( void,            vout_PlacePicture,   ( const vout_thread_t *, unsigned int, unsigned int, unsigned int *, unsigned int *, unsigned int *, unsigned int * ) );
 
+/**
+ * Return the spu_t object associated to a vout_thread_t.
+ *
+ * The return object is valid only as long as the vout is. You must not
+ * release the spu_t object returned.
+ * It cannot return NULL so no need to check.
+ */
+VLC_EXPORT( spu_t *, vout_GetSpu, ( vout_thread_t * ) );
+
 void vout_IntfInit( vout_thread_t * );
 VLC_EXPORT( void, vout_EnableFilter, ( vout_thread_t *, char *,bool , bool  ) );
 
index 53eaee313e219418bf2ebe08f154f5ae1f21924c..48f0a321b54f80b8368a593019bec1e14b1b6627 100644 (file)
@@ -542,6 +542,7 @@ vout_DestroyPicture
 vout_DisplayPicture
 vout_EnableFilter
 vout_GetSnapshot
+vout_GetSpu
 vout_LinkPicture
 vout_OSDIcon
 __vout_OSDMessage
index 7555d8345cc357dd4d17e1eac810f6edce61032a..864ba003b4d12f6a036f46e6f45b6e40a5ee3719 100644 (file)
@@ -800,6 +800,11 @@ void vout_DisplayTitle( vout_thread_t *p_vout, const char *psz_title )
     vlc_mutex_unlock( &p_vout->change_lock );
 }
 
+spu_t *vout_GetSpu( vout_thread_t *p_vout )
+{
+    return p_vout->p_spu;
+}
+
 /*****************************************************************************
  * InitThread: initialize video output thread
  *****************************************************************************