Commit 44ea680b authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

vout: remove vout_HoldPicture()

parent 7e864e86
......@@ -152,7 +152,6 @@ VLC_API void vout_ChangeAspectRatio( vout_thread_t *p_vout,
VLC_API picture_t * vout_GetPicture( vout_thread_t * );
VLC_API void vout_PutPicture( vout_thread_t *, picture_t * );
VLC_API void vout_HoldPicture( vout_thread_t *, picture_t * );
VLC_API void vout_ReleasePicture( vout_thread_t *, picture_t * );
/* */
......
......@@ -2198,7 +2198,7 @@ static void vout_del_buffer( decoder_t *p_dec, picture_t *p_pic )
static void vout_link_picture( decoder_t *p_dec, picture_t *p_pic )
{
vout_HoldPicture( p_dec->p_owner->p_vout, p_pic );
picture_Hold( p_pic );
}
static void vout_unlink_picture( decoder_t *p_dec, picture_t *p_pic )
......
......@@ -615,7 +615,6 @@ vout_ChangeAspectRatio
vout_Close
vout_GetPicture
vout_PutPicture
vout_HoldPicture
vout_ReleasePicture
vout_PutSubpicture
vout_RegisterSubpictureChannel
......
......@@ -407,7 +407,7 @@ void vout_FlushSubpictureChannel( vout_thread_t *vout, int channel )
*
* You MUST call vout_PutPicture or vout_ReleasePicture on it.
*
* You may use vout_HoldPicture(paired with vout_ReleasePicture) to keep a
* You may use picture_Hold() (paired with vout_ReleasePicture()) to keep a
* read-only reference.
*/
picture_t *vout_GetPicture(vout_thread_t *vout)
......@@ -452,15 +452,6 @@ void vout_ReleasePicture(vout_thread_t *vout, picture_t *picture)
vlc_mutex_unlock(&vout->p->picture_lock);
}
/**
* It increment the reference counter of a picture retreived by
* vout_GetPicture.
*/
void vout_HoldPicture(vout_thread_t *vout, picture_t *picture)
{
picture_Hold(picture);
}
/* */
int vout_GetSnapshot(vout_thread_t *vout,
block_t **image_dst, picture_t **picture_dst,
......
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