Commit 71edfa91 authored by Laurent Aimar's avatar Laurent Aimar

Used picture_Release when applicable.

parent ccc3af5d
...@@ -485,7 +485,7 @@ picture_pool_t *vout_display_opengl_GetPool(vout_display_opengl_t *vgl, unsigned ...@@ -485,7 +485,7 @@ picture_pool_t *vout_display_opengl_GetPool(vout_display_opengl_t *vgl, unsigned
error: error:
for (unsigned i = 0; i < count; i++) for (unsigned i = 0; i < count; i++)
picture_Delete(picture[i]); picture_Release(picture[i]);
return NULL; return NULL;
} }
......
...@@ -633,11 +633,8 @@ static picture_t *video_new_buffer( decoder_t *p_dec ) ...@@ -633,11 +633,8 @@ static picture_t *video_new_buffer( decoder_t *p_dec )
static void video_del_buffer( decoder_t *p_dec, picture_t *p_pic ) static void video_del_buffer( decoder_t *p_dec, picture_t *p_pic )
{ {
if( p_pic->i_refcount != 1 ) (void)p_dec;
msg_Err( p_dec, "invalid picture reference count" ); picture_Release( p_pic );
p_pic->i_refcount = 0;
picture_Delete( p_pic );
} }
static void video_link_picture( decoder_t *p_dec, picture_t *p_pic ) static void video_link_picture( decoder_t *p_dec, picture_t *p_pic )
......
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