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

playlist: remove constant duration parameter to playlist_AddExt()

parent 0aa7f149
......@@ -322,7 +322,7 @@ VLC_API int playlist_ServicesDiscoveryControl( playlist_t *, const char *, int,
/******************** 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 );
VLC_API int playlist_AddExt( playlist_t *, const char *, const char *, int, int, int, const char *const *, unsigned, bool );
VLC_API int playlist_AddInput( playlist_t *, input_item_t *, int, int, 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 );
......
......@@ -102,7 +102,7 @@ static LRESULT CALLBACK WMCOPYWNDPROC(HWND hwnd, UINT uMsg,
(psz_URI != NULL) ? psz_URI : ppsz_argv[i_opt],
NULL,
( ( i_opt || p_data->enqueue ) ? 0 : PLAYLIST_GO ),
PLAYLIST_END, -1,
PLAYLIST_END,
i_options,
(char const **)( i_options ? &ppsz_argv[i_opt+1] : NULL ),
VLC_INPUT_OPTION_TRUSTED,
......
......@@ -237,7 +237,6 @@ int Open::openMRLwithOptions( intf_thread_t* p_intf,
qtu(mrl), title,
(b_start ? PLAYLIST_GO : 0),
PLAYLIST_END,
-1,
i_options, ppsz_options, VLC_INPUT_OPTION_TRUSTED,
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, 0,
0, -1, optc, optv, flags, true);
0, optc, optv, flags, true);
}
void libvlc_InternalPlay(libvlc_int_t *libvlc)
......
......@@ -100,7 +100,7 @@ static void IPCHelperThread( void *arg )
playlist_AddExt( p_playlist, ppsz_argv[ i_opt ], NULL,
(( i_opt || ulCmd == IPC_CMD_ENQUEUE ) ?
0 : PLAYLIST_GO ),
PLAYLIST_END, -1, i_options,
PLAYLIST_END, i_options,
( char const ** )
( i_options ? &ppsz_argv[ i_opt + 1 ] :
NULL ),
......
......@@ -459,7 +459,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 );
i_mode, i_pos, 0, NULL, 0, b_playlist );
}
/**
......@@ -472,7 +472,6 @@ int playlist_Add( playlist_t *p_playlist, const char *psz_uri,
* \param i_pos the position in the playlist where to add. If this is
* PLAYLIST_END the item will be added at the end of the playlist
* regardless of its size
* \param i_duration length of the item in milliseconds.
* \param i_options the number of options
* \param ppsz_options an array of options
* \param i_option_flags options flags
......@@ -481,7 +480,6 @@ int playlist_Add( playlist_t *p_playlist, const char *psz_uri,
*/
int playlist_AddExt( playlist_t *p_playlist, const char * psz_uri,
const char *psz_name, int i_mode, int i_pos,
mtime_t i_duration,
int i_options, const char *const *ppsz_options,
unsigned i_option_flags,
bool b_playlist )
......@@ -489,8 +487,7 @@ int playlist_AddExt( playlist_t *p_playlist, const char * psz_uri,
int i_ret;
input_item_t *p_input;
p_input = input_item_NewExt( psz_uri, psz_name, i_duration,
ITEM_TYPE_UNKNOWN, ITEM_NET_UNKNOWN );
p_input = input_item_New( psz_uri, psz_name );
if( p_input == NULL )
return VLC_ENOMEM;
input_item_AddOptions( p_input, i_options, ppsz_options, i_option_flags );
......
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