Changeset bc35aea3a1f6c84524c56e8da7610a6edaadb0e3
- 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
| r4cc4c67 |
rbc35aea |
|
| 940 | 940 | /* Free playlist */ |
|---|
| 941 | 941 | msg_Dbg( p_libvlc, "removing playlist" ); |
|---|
| 942 | | playlist_ThreadDestroy( priv->p_playlist ); |
|---|
| | 942 | vlc_object_release( priv->p_playlist ); |
|---|
| 943 | 943 | |
|---|
| 944 | 944 | /* Free video outputs */ |
|---|
| r0e3e5da |
rbc35aea |
|
| 167 | 167 | * \return nothing |
|---|
| 168 | 168 | */ |
|---|
| 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 | | } |
|---|
| 186 | 169 | |
|---|
| 187 | 170 | static void playlist_Destructor( vlc_object_t * p_this ) |
|---|
| … | … | |
| 189 | 172 | playlist_t * p_playlist = (playlist_t *)p_this; |
|---|
| 190 | 173 | |
|---|
| 191 | | // Kill preparser |
|---|
| 192 | 174 | if( p_playlist->p_preparse ) |
|---|
| 193 | | { |
|---|
| 194 | 175 | vlc_object_release( p_playlist->p_preparse ); |
|---|
| 195 | | } |
|---|
| 196 | | |
|---|
| 197 | | // Kill meta fetcher |
|---|
| | 176 | |
|---|
| 198 | 177 | if( p_playlist->p_fetcher ) |
|---|
| 199 | | { |
|---|
| 200 | 178 | vlc_object_release( p_playlist->p_fetcher ); |
|---|
| 201 | | } |
|---|
| 202 | 179 | } |
|---|
| 203 | 180 | |
|---|
| r7bc28ee |
rbc35aea |
|
| 63 | 63 | #define playlist_ThreadCreate(a) __playlist_ThreadCreate(VLC_OBJECT(a)) |
|---|
| 64 | 64 | void __playlist_ThreadCreate ( vlc_object_t * ); |
|---|
| 65 | | int playlist_ThreadDestroy ( playlist_t * ); |
|---|
| 66 | 65 | |
|---|
| 67 | 66 | /* Creation/Deletion */ |
|---|
| 68 | 67 | playlist_t *playlist_Create ( vlc_object_t * ); |
|---|
| 69 | | void playlist_Destroy ( playlist_t * ); |
|---|
| 70 | 68 | |
|---|
| 71 | 69 | /* Engine */ |
|---|
| r2cc99c5 |
rbc35aea |
|
| 127 | 127 | |
|---|
| 128 | 128 | /** |
|---|
| 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 | | /** |
|---|
| 142 | 129 | * Run the main control thread itself |
|---|
| 143 | 130 | */ |
|---|