Changeset a5f3b25025d31eebdc86ebb7bce772e29f249130

Show
Ignore:
Timestamp:
20/04/08 21:26:49 (6 months ago)
Author:
Rafaël Carré <funman@videolan.org>
git-committer:
Rafaël Carré <funman@videolan.org> 1208719609 +0200
git-parent:

[42a0d047849f391a75432dfdf5d71523d6ec08c7]

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

Correctly release sout object when it has been kept

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/libvlc-common.c

    r03e1456 ra5f3b25  
    944944    aout_instance_t    * p_aout = NULL; 
    945945    announce_handler_t * p_announce = NULL; 
     946    sout_instance_t    * p_sout = NULL; 
    946947 
    947948    /* Ask the interfaces to stop and destroy them */ 
     
    976977        vlc_object_release( (vlc_object_t *)p_aout ); 
    977978        aout_Delete( p_aout ); 
     979    } 
     980 
     981    p_sout = vlc_object_find( p_libvlc, VLC_OBJECT_SOUT, FIND_CHILD ); 
     982    if( p_sout ) 
     983    { 
     984        msg_Dbg( p_sout, "removing kept stream output" ); 
     985        vlc_object_detach( (vlc_object_t*)p_sout ); 
     986        vlc_object_release( (vlc_object_t*)p_sout ); 
     987        sout_DeleteInstance( p_sout ); 
    978988    } 
    979989