Changeset af37ba18784c712f7b57a2420ab80d4a06984f20 for src/misc
- Timestamp:
- 07/18/08 20:47:20 (1 month ago)
- git-parent:
- Files:
-
- src/misc/image.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
src/misc/image.c
r76ab469 raf37ba1 140 140 != NULL ) 141 141 { 142 if ( p_pic != NULL )143 p _pic->pf_release( p_pic );142 if( p_pic != NULL ) 143 picture_Release( p_pic ); 144 144 p_pic = p_tmp; 145 145 } … … 189 189 if( !p_image->p_filter ) 190 190 { 191 p _pic->pf_release( p_pic );191 picture_Release( p_pic ); 192 192 return NULL; 193 193 } … … 317 317 } 318 318 319 if( p_pic->pf_release )320 p_pic->i_refcount++; 319 picture_Yield( p_pic ); 320 321 321 p_tmp_pic = 322 322 p_image->p_filter->pf_video_filter( p_image->p_filter, p_pic ); … … 447 447 } 448 448 449 if( p_pic->pf_release )450 p_pic->i_refcount++; 449 picture_Yield( p_pic ); 450 451 451 p_pif = p_image->p_filter->pf_video_filter( p_image->p_filter, p_pic ); 452 452 … … 456 456 { 457 457 /* Duplicate image */ 458 p _pif->pf_release( p_pif ); /* XXX: Better fix must be possible */458 picture_Release( p_pif ); /* XXX: Better fix must be possible */ 459 459 p_pif = p_image->p_filter->pf_vout_buffer_new( p_image->p_filter ); 460 460 if( p_pif ) vout_CopyPicture( p_image->p_parent, p_pif, p_pic ); … … 494 494 } 495 495 496 if( p_pic->pf_release )497 p_pic->i_refcount++; 496 picture_Yield( p_pic ); 497 498 498 return p_image->p_filter->pf_video_filter( p_image->p_filter, p_pic ); 499 499 } … … 612 612 { 613 613 (void)p_dec; 614 p _pic->i_refcount++;614 picture_Yield( p_pic ); 615 615 } 616 616 617 617 static void video_unlink_picture( decoder_t *p_dec, picture_t *p_pic ) 618 618 { 619 (void)p_dec; (void)p_pic;620 video_release_buffer( p_pic );619 (void)p_dec; 620 picture_Release( p_pic ); 621 621 } 622 622
