Commit b46ae2a9 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

playlist: remove locked parameter to playlist_AddExt()

parent 284b59b9
......@@ -334,7 +334,7 @@ VLC_API int playlist_DeleteFromInput( playlist_t *, input_item_t *, bool );
/******************** Item addition ********************/
VLC_API int playlist_Add( playlist_t *, const char *, const char *, int, int, bool );
VLC_API int playlist_AddExt( playlist_t *, const char *, const char *, int, int, mtime_t, int, const char *const *, unsigned, bool, bool );
VLC_API int playlist_AddExt( playlist_t *, const char *, const char *, int, int, mtime_t, int, const char *const *, unsigned, bool );
VLC_API int playlist_AddInput( playlist_t *, input_item_t *, int, int, bool, bool );
VLC_API playlist_item_t * playlist_NodeAddInput( playlist_t *, input_item_t *, playlist_item_t *, int, int );
VLC_API int playlist_NodeAddCopy( playlist_t *, playlist_item_t *, playlist_item_t *, int );
......
......@@ -106,7 +106,7 @@ static LRESULT CALLBACK WMCOPYWNDPROC(HWND hwnd, UINT uMsg,
i_options,
(char const **)( i_options ? &ppsz_argv[i_opt+1] : NULL ),
VLC_INPUT_OPTION_TRUSTED,
true, pl_Unlocked );
true );
i_opt += i_options;
free( psz_URI );
......
......@@ -239,8 +239,7 @@ int Open::openMRLwithOptions( intf_thread_t* p_intf,
PLAYLIST_END,
-1,
i_options, ppsz_options, VLC_INPUT_OPTION_TRUSTED,
b_playlist,
pl_Unlocked );
b_playlist );
/* Add to recent items, only if played */
if( i_ret == VLC_SUCCESS && b_start && b_playlist )
......
......@@ -162,7 +162,7 @@ void intf_InsertItem(libvlc_int_t *libvlc, const char *mrl, unsigned optc,
const char *const *optv, unsigned flags)
{
playlist_AddExt(intf_GetPlaylist(libvlc), mrl, NULL, PLAYLIST_INSERT,
0, -1, optc, optv, flags, true, pl_Unlocked);
0, -1, optc, optv, flags, true);
}
void libvlc_InternalPlay(libvlc_int_t *libvlc)
......
......@@ -106,7 +106,7 @@ static void IPCHelperThread( void *arg )
( i_options ? &ppsz_argv[ i_opt + 1 ] :
NULL ),
VLC_INPUT_OPTION_TRUSTED,
true, pl_Unlocked );
true );
}
for( ; i_options >= 0; i_options-- )
......
......@@ -384,7 +384,7 @@ int playlist_Add( playlist_t *p_playlist, const char *psz_uri,
bool b_playlist )
{
return playlist_AddExt( p_playlist, psz_uri, psz_name,
i_mode, i_pos, -1, 0, NULL, 0, b_playlist, false );
i_mode, i_pos, -1, 0, NULL, 0, b_playlist );
}
/**
......@@ -402,7 +402,6 @@ int playlist_Add( playlist_t *p_playlist, const char *psz_uri,
* \param ppsz_options an array of options
* \param i_option_flags options flags
* \param b_playlist TRUE for playlist, FALSE for media library
* \param b_locked TRUE if the playlist is locked
* \return VLC_SUCCESS or a VLC error code
*/
int playlist_AddExt( playlist_t *p_playlist, const char * psz_uri,
......@@ -410,7 +409,7 @@ int playlist_AddExt( playlist_t *p_playlist, const char * psz_uri,
mtime_t i_duration,
int i_options, const char *const *ppsz_options,
unsigned i_option_flags,
bool b_playlist, bool b_locked )
bool b_playlist )
{
int i_ret;
input_item_t *p_input;
......@@ -420,8 +419,8 @@ int playlist_AddExt( playlist_t *p_playlist, const char * psz_uri,
if( p_input == NULL )
return VLC_ENOMEM;
input_item_AddOptions( p_input, i_options, ppsz_options, i_option_flags );
i_ret = playlist_AddInput( p_playlist, p_input, i_mode, i_pos, b_playlist,
b_locked );
i_ret = playlist_AddInput( p_playlist, p_input, i_mode, i_pos,
b_playlist, false );
vlc_gc_decref( p_input );
return i_ret;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment