Changeset ee6f60d7278f9d45835522eb60c247ee8bef77ac

Show
Ignore:
Timestamp:
05/28/08 01:20:54 (3 months ago)
Author:
Rafaël Carré <funman@videolan.org>
git-committer:
Rafaël Carré <funman@videolan.org> 1211930454 +0200
git-parent:

[270e081243fdd412e2391e7aba1cfca96f5b148f]

git-author:
Rafaël Carré <funman@videolan.org> 1211891159 +0200
Message:

Avoid using vlc_object_find() when not needed

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/video_output/video_text.c

    r449fd28 ree6f60d  
    132132    if( !config_GetInt( p_caller, "osd" ) ) return; 
    133133 
    134     p_vout = vlc_object_find( p_caller, VLC_OBJECT_VOUT, FIND_ANYWHERE ); 
     134    if( p_caller->i_object_type == VLC_OBJECT_VOUT ) 
     135    { 
     136        p_vout = (vout_thread_t*) p_caller; 
     137        vlc_object_yield( p_vout ); 
     138    } 
     139    else 
     140        p_vout = vlc_object_find( p_caller, VLC_OBJECT_VOUT, FIND_ANYWHERE ); 
     141 
    135142    if( p_vout ) 
    136143    {