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

playlist: remove constant playlist_Add() parameter

parent 06fcb250
...@@ -321,7 +321,7 @@ VLC_API int playlist_ServicesDiscoveryControl( playlist_t *, const char *, int, ...@@ -321,7 +321,7 @@ VLC_API int playlist_ServicesDiscoveryControl( playlist_t *, const char *, int,
********************************************************/ ********************************************************/
/******************** Item addition ********************/ /******************** Item addition ********************/
VLC_API int playlist_Add( playlist_t *, const char *, const char *, int, bool ); VLC_API int playlist_Add( playlist_t *, const char *, const char *, int );
VLC_API int playlist_AddExt( playlist_t *, const char *, const char *, int, int, const char *const *, unsigned, bool ); VLC_API int playlist_AddExt( playlist_t *, const char *, const char *, int, int, const char *const *, unsigned, bool );
VLC_API int playlist_AddInput( playlist_t *, input_item_t *, int, bool ); VLC_API int playlist_AddInput( playlist_t *, input_item_t *, int, bool );
VLC_API playlist_item_t * playlist_NodeAddInput( playlist_t *, input_item_t *, playlist_item_t *, int, int ); VLC_API playlist_item_t * playlist_NodeAddInput( playlist_t *, input_item_t *, playlist_item_t *, int, int );
......
...@@ -229,7 +229,7 @@ DBUS_METHOD( OpenUri ) ...@@ -229,7 +229,7 @@ DBUS_METHOD( OpenUri )
return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
} }
playlist_Add( PL, psz_mrl, NULL, PLAYLIST_GO, true ); playlist_Add( PL, psz_mrl, NULL, PLAYLIST_GO );
REPLY_SEND; REPLY_SEND;
} }
......
...@@ -44,5 +44,5 @@ void CmdAddItem::execute() ...@@ -44,5 +44,5 @@ void CmdAddItem::execute()
free( psz_uri ); free( psz_uri );
} }
playlist_Add( pPlaylist, m_name.c_str(), NULL, playlist_Add( pPlaylist, m_name.c_str(), NULL,
m_playNow ? PLAYLIST_GO : 0, true ); m_playNow ? PLAYLIST_GO : 0 );
} }
...@@ -448,14 +448,13 @@ void playlist_Clear( playlist_t * p_playlist, bool b_locked ) ...@@ -448,14 +448,13 @@ void playlist_Clear( playlist_t * p_playlist, bool b_locked )
* \param psz_uri the mrl to add to the playlist * \param psz_uri the mrl to add to the playlist
* \param psz_name a text giving a name or description of this item * \param psz_name a text giving a name or description of this item
* \param i_mode the mode used when adding * \param i_mode the mode used when adding
* \param b_playlist TRUE for playlist, FALSE for media library
* \return VLC_SUCCESS or a VLC error code * \return VLC_SUCCESS or a VLC error code
*/ */
int playlist_Add( playlist_t *p_playlist, const char *psz_uri, int playlist_Add( playlist_t *p_playlist, const char *psz_uri,
const char *psz_name, int i_mode, bool b_playlist ) const char *psz_name, int i_mode )
{ {
return playlist_AddExt( p_playlist, psz_uri, psz_name, return playlist_AddExt( p_playlist, psz_uri, psz_name,
i_mode, 0, NULL, 0, b_playlist ); i_mode, 0, NULL, 0, true );
} }
/** /**
......
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