Changeset 09ed6d819e56ab8405d47eba7b1fcfe8c0778899

Show
Ignore:
Timestamp:
09/02/05 16:00:20 (3 years ago)
Author:
Benjamin Pracht <bigben@videolan.org>
git-committer:
Benjamin Pracht <bigben@videolan.org> 1125669620 +0000
git-parent:

[731c3c844c4333fdd0377e0ae4624fd73bda6a6b]

git-author:
Benjamin Pracht <bigben@videolan.org> 1125669620 +0000
Message:

* Don't try to release NULL
* Fixes the "vlc would crash when hitting play" bug

Files:

Legend:

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

    ra92603f r09ed6d8  
    4141    vout_thread_t *p_vout = vlc_object_find( p_caller, VLC_OBJECT_VOUT, 
    4242                                             FIND_ANYWHERE ); 
     43 
    4344    if( p_vout && ( config_GetInt( p_caller, "osd" ) || ( i_position >= 0 ) ) ) 
    4445    { 
     
    5758    vout_thread_t *p_vout = vlc_object_find( p_caller, VLC_OBJECT_VOUT, 
    5859                                             FIND_ANYWHERE ); 
     60 
     61    if( !p_vout ) return; 
     62 
    5963    if( p_vout && config_GetInt( p_caller, "osd" ) ) 
    6064    { 
     
    6266            p_vout->render.i_height, i_channel, i_type ); 
    6367    } 
    64     vlc_object_release( p_vout ); 
    6568}