Changeset 39eef2d3c94153157cafa65f8b655c19e6b80806

Show
Ignore:
Timestamp:
06/04/08 13:14:12 (3 months ago)
Author:
Antoine Cellerier <dionoea@videolan.org>
git-committer:
Antoine Cellerier <dionoea@videolan.org> 1212578052 +0200
git-parent:

[5cc4255aa74f938e38cbdd9dcca4136475a4bc3f]

git-author:
Antoine Cellerier <dionoea@videolan.org> 1212577070 +0200
Message:

Ugly hack to make the filter chain work correctly for the video output core. This will be removed once all the different picture release methods have been merged into one coherent method.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/misc/filter_chain.c

    re259db6 r39eef2d  
    278278 * Apply the filter chain 
    279279 */ 
     280 
     281/* FIXME This include is needed by the Ugly hack */ 
     282#include <vlc_vout.h> 
     283 
    280284picture_t *filter_chain_VideoFilter( filter_chain_t *p_chain, picture_t *p_pic ) 
    281285{ 
     
    285289    { 
    286290        filter_t *p_filter = pp_filter[i]; 
    287         p_pic = p_filter->pf_video_filter( p_filter, p_pic ); 
    288         if( !p_pic ) 
     291        picture_t *p_newpic = p_filter->pf_video_filter( p_filter, p_pic ); 
     292        if( !p_newpic ) 
    289293            return NULL; 
     294        /* FIXME Ugly hack to make it work in picture core. 
     295         * FIXME Remove this code when the picture release API has been 
     296         * FIXME cleaned up (a git revert of the commit should work) */ 
     297        if( p_chain->p_this->i_object_type == VLC_OBJECT_VOUT ) 
     298        { 
     299            if( p_pic->i_refcount ) 
     300                p_pic->i_status = DISPLAYED_PICTURE; 
     301            else 
     302                p_pic->i_status = DESTROYED_PICTURE; 
     303            p_newpic->i_status = READY_PICTURE; 
     304        } 
     305        p_pic = p_newpic; 
    290306    } 
    291307    return p_pic;