X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=include%2Fvlc_playlist.h;h=54e457c40377caa32b1efd1ed5bab0f5c7195804;hb=672c3f35c4e4a9222e74c36f96ca1ffb66636a46;hp=eb569500644b8710f530c0a40c5e8a44099b56b5;hpb=d057b0df8de8ec4816fa4d1fd194a89c7c49cce6;p=vlc diff --git a/include/vlc_playlist.h b/include/vlc_playlist.h index eb56950064..54e457c403 100644 --- a/include/vlc_playlist.h +++ b/include/vlc_playlist.h @@ -21,8 +21,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ -#ifndef _VLC_PLAYLIST_H_ -#define _VLC_PLAYLIST_H_ +#ifndef VLC_PLAYLIST_H_ +#define VLC_PLAYLIST_H_ # ifdef __cplusplus extern "C" { @@ -168,6 +168,8 @@ struct playlist_t playlist_item_array_t items; /**< Arrays of items */ playlist_item_array_t all_items; /**< Array of items and nodes */ + playlist_item_array_t items_to_delete; /**< Array of items and nodes to + delete... At the very end. This sucks. */ playlist_item_array_t current; /**< Items currently being played */ int i_current_index; /**< Index in current array */ @@ -201,8 +203,6 @@ struct playlist_t playlist_preparse_t *p_preparse; /**< Preparser object */ playlist_fetcher_t *p_fetcher;/**< Meta and art fetcher object */ - vlc_mutex_t gc_lock; /**< Lock to protect the garbage collection */ - struct { /* Current status. These fields are readonly, only the playlist * main loop can touch it*/ @@ -213,7 +213,7 @@ struct playlist_t struct { /* Request. Use this to give orders to the playlist main loop */ - int i_status; /**< requested playlist status */ + playlist_status_t i_status; /**< requested playlist status */ playlist_item_t * p_node; /**< requested node to play from */ playlist_item_t * p_item; /**< requested item to play in the node */ @@ -409,7 +409,7 @@ static inline int playlist_Import( playlist_t *p_playlist, const char *psz_file) input_item_t *p_input; snprintf( psz_uri, 256+9, "file/://%s", psz_file ); const char *const psz_option = "meta-file"; - p_input = input_ItemNewExt( p_playlist, psz_uri, psz_file, + p_input = input_item_NewExt( p_playlist, psz_uri, psz_file, 1, &psz_option, -1 ); playlist_AddInput( p_playlist, p_input, PLAYLIST_APPEND, PLAYLIST_END, true, false );