Commit 848f176f authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

image: use filter_(New|Delete)Picture()

parent f5766175
...@@ -349,8 +349,7 @@ static block_t *ImageWrite( image_handler_t *p_image, picture_t *p_pic, ...@@ -349,8 +349,7 @@ static block_t *ImageWrite( image_handler_t *p_image, picture_t *p_pic,
{ {
p_block = p_image->p_enc->pf_encode_video( p_image->p_enc, p_block = p_image->p_enc->pf_encode_video( p_image->p_enc,
p_tmp_pic ); p_tmp_pic );
p_image->p_filter->pf_video_buffer_del( p_image->p_filter, filter_DeletePicture(p_image->p_filter, p_tmp_pic );
p_tmp_pic );
} }
else else
p_block = NULL; p_block = NULL;
...@@ -485,7 +484,7 @@ static picture_t *ImageConvert( image_handler_t *p_image, picture_t *p_pic, ...@@ -485,7 +484,7 @@ static picture_t *ImageConvert( image_handler_t *p_image, picture_t *p_pic,
{ {
/* Duplicate image */ /* Duplicate image */
picture_Release( p_pif ); /* XXX: Better fix must be possible */ picture_Release( p_pif ); /* XXX: Better fix must be possible */
p_pif = p_image->p_filter->pf_video_buffer_new( p_image->p_filter ); p_pif = filter_NewPicture( p_image->p_filter );
if( p_pif ) if( p_pif )
picture_Copy( p_pif, p_pic ); picture_Copy( p_pif, 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