Commit 7090b8ef authored by Laurent Aimar's avatar Laurent Aimar

Unexport now unused picture_Delete().

parent 71edfa91
...@@ -150,15 +150,6 @@ typedef struct ...@@ -150,15 +150,6 @@ typedef struct
*/ */
VLC_API picture_t * picture_NewFromResource( const video_format_t *, const picture_resource_t * ) VLC_USED; VLC_API picture_t * picture_NewFromResource( const video_format_t *, const picture_resource_t * ) VLC_USED;
/**
* This function will force the destruction a picture.
* The value of the picture reference count should be 0 before entering this
* function.
* Unless used for reimplementing pf_release, you should not use this
* function but picture_Release.
*/
VLC_API void picture_Delete( picture_t * );
/** /**
* This function will increase the picture reference count. * This function will increase the picture reference count.
* It will not have any effect on picture obtained from vout * It will not have any effect on picture obtained from vout
......
...@@ -309,7 +309,6 @@ osd_Volume ...@@ -309,7 +309,6 @@ osd_Volume
path_sanitize path_sanitize
picture_BlendSubpicture picture_BlendSubpicture
picture_CopyPixels picture_CopyPixels
picture_Delete
picture_Hold picture_Hold
picture_Release picture_Release
picture_IsReferenced picture_IsReferenced
......
...@@ -92,6 +92,17 @@ static int AllocatePicture( picture_t *p_pic, ...@@ -92,6 +92,17 @@ static int AllocatePicture( picture_t *p_pic,
/***************************************************************************** /*****************************************************************************
* *
*****************************************************************************/ *****************************************************************************/
static void picture_Delete( picture_t *p_picture )
{
assert( p_picture && p_picture->i_refcount == 0 );
assert( p_picture->p_release_sys == NULL );
free( p_picture->p_q );
vlc_free( p_picture->p_data_orig );
free( p_picture->p_sys );
free( p_picture );
}
static void PictureReleaseCallback( picture_t *p_picture ) static void PictureReleaseCallback( picture_t *p_picture )
{ {
if( --p_picture->i_refcount > 0 ) if( --p_picture->i_refcount > 0 )
...@@ -267,16 +278,6 @@ picture_t *picture_New( vlc_fourcc_t i_chroma, int i_width, int i_height, int i_ ...@@ -267,16 +278,6 @@ picture_t *picture_New( vlc_fourcc_t i_chroma, int i_width, int i_height, int i_
/***************************************************************************** /*****************************************************************************
* *
*****************************************************************************/ *****************************************************************************/
void picture_Delete( picture_t *p_picture )
{
assert( p_picture && p_picture->i_refcount == 0 );
assert( p_picture->p_release_sys == NULL );
free( p_picture->p_q );
vlc_free( p_picture->p_data_orig );
free( p_picture->p_sys );
free( p_picture );
}
picture_t *picture_Hold( picture_t *p_picture ) picture_t *picture_Hold( picture_t *p_picture )
{ {
......
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