Commit fd584ea3 authored by Laurent Aimar's avatar Laurent Aimar

Added vout_GetSpu to retreive the spu_t object from the vout.

It will allow hiding vout_thread_t fields.
parent a15851b2
......@@ -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 ) );
......
......@@ -542,6 +542,7 @@ vout_DestroyPicture
vout_DisplayPicture
vout_EnableFilter
vout_GetSnapshot
vout_GetSpu
vout_LinkPicture
vout_OSDIcon
__vout_OSDMessage
......
......@@ -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
*****************************************************************************
......
Markdown is supported
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