Changeset bc35aea3a1f6c84524c56e8da7610a6edaadb0e3

Show
Ignore:
Timestamp:
05/14/08 22:28:20 (2 months ago)
Author:
Pierre d'Herbemont <pdherbemont@videolan.org>
git-committer:
Pierre d'Herbemont <pdherbemont@videolan.org> 1210796900 +0200
git-parent:

[0e3e5da42643cac283fc0e758147351635679abf]

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

Use vlc_object_release() to release the playlist

Signed-off-by: Pierre d'Herbemont <pdherbemont@videolan.org>

Files:

Legend:

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

    r4cc4c67 rbc35aea  
    940940    /* Free playlist */ 
    941941    msg_Dbg( p_libvlc, "removing playlist" ); 
    942     playlist_ThreadDestroy( priv->p_playlist ); 
     942    vlc_object_release( priv->p_playlist ); 
    943943 
    944944    /* Free video outputs */ 
  • src/playlist/engine.c

    r0e3e5da rbc35aea  
    167167 * \return nothing 
    168168 */ 
    169 void playlist_Destroy( playlist_t *p_playlist ) 
    170 { 
    171     /* XXX: should go in the playlist destructor */ 
    172     var_Destroy( p_playlist, "intf-change" ); 
    173     var_Destroy( p_playlist, "item-change" ); 
    174     var_Destroy( p_playlist, "playlist-current" ); 
    175     var_Destroy( p_playlist, "intf-popupmenu" ); 
    176     var_Destroy( p_playlist, "intf-show" ); 
    177     var_Destroy( p_playlist, "play-and-stop" ); 
    178     var_Destroy( p_playlist, "play-and-exit" ); 
    179     var_Destroy( p_playlist, "random" ); 
    180     var_Destroy( p_playlist, "repeat" ); 
    181     var_Destroy( p_playlist, "loop" ); 
    182     var_Destroy( p_playlist, "activity" ); 
    183  
    184     vlc_object_release( p_playlist ); 
    185 } 
    186169 
    187170static void playlist_Destructor( vlc_object_t * p_this ) 
     
    189172    playlist_t * p_playlist = (playlist_t *)p_this; 
    190173 
    191     // Kill preparser 
    192174    if( p_playlist->p_preparse ) 
    193     { 
    194175        vlc_object_release( p_playlist->p_preparse ); 
    195     } 
    196  
    197     // Kill meta fetcher 
     176 
    198177    if( p_playlist->p_fetcher ) 
    199     { 
    200178        vlc_object_release( p_playlist->p_fetcher ); 
    201     } 
    202179} 
    203180 
  • src/playlist/playlist_internal.h

    r7bc28ee rbc35aea  
    6363#define playlist_ThreadCreate(a) __playlist_ThreadCreate(VLC_OBJECT(a)) 
    6464void        __playlist_ThreadCreate   ( vlc_object_t * ); 
    65 int           playlist_ThreadDestroy  ( playlist_t * ); 
    6665 
    6766/* Creation/Deletion */ 
    6867playlist_t *playlist_Create   ( vlc_object_t * ); 
    69 void        playlist_Destroy  ( playlist_t * ); 
    7068 
    7169/* Engine */ 
  • src/playlist/thread.c

    r2cc99c5 rbc35aea  
    127127 
    128128/** 
    129  * Destroy the playlist global thread. 
    130  * 
    131  * Deinits all things controlled by the playlist global thread 
    132  * \param p_playlist the playlist thread to destroy 
    133  * \return VLC_SUCCESS or an error 
    134  */ 
    135 int playlist_ThreadDestroy( playlist_t * p_playlist ) 
    136 { 
    137     playlist_Destroy( p_playlist ); 
    138     return VLC_SUCCESS; 
    139 } 
    140  
    141 /** 
    142129 * Run the main control thread itself 
    143130 */