[vlc-commits] playlist: remove constant parameter
Rémi Denis-Courmont
git at videolan.org
Tue Nov 15 21:04:44 CET 2016
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Nov 15 21:40:39 2016 +0200| [4212a60ea1caedd0eb353431f01c85df1db5af6e] | committer: Rémi Denis-Courmont
playlist: remove constant parameter
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4212a60ea1caedd0eb353431f01c85df1db5af6e
---
src/playlist/item.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/src/playlist/item.c b/src/playlist/item.c
index 36320e6..97f2e37 100644
--- a/src/playlist/item.c
+++ b/src/playlist/item.c
@@ -327,11 +327,10 @@ int playlist_ItemRelease( playlist_item_t *p_item )
* \param p_playlist playlist object
* \param p_input the input to delete
* \param p_root root playlist item
- * \param b_do_stop must stop or not the playlist
* \return VLC_SUCCESS or VLC_EGENERIC
*/
static int DeleteFromInput( playlist_t *p_playlist, input_item_t *p_input,
- playlist_item_t *p_root, bool b_do_stop )
+ playlist_item_t *p_root )
{
PL_ASSERT_LOCKED;
playlist_item_t *p_item = playlist_ItemFindFromInputAndRoot(
@@ -356,7 +355,7 @@ int playlist_DeleteFromInputInParent( playlist_t *p_playlist,
{
int i_ret;
PL_LOCK_IF( !b_locked );
- i_ret = DeleteFromInput( p_playlist, p_item, p_root, true );
+ i_ret = DeleteFromInput( p_playlist, p_item, p_root );
PL_UNLOCK_IF( !b_locked );
return i_ret;
}
@@ -375,8 +374,7 @@ int playlist_DeleteFromInput( playlist_t *p_playlist, input_item_t *p_input,
{
int i_ret;
PL_LOCK_IF( !b_locked );
- i_ret = DeleteFromInput( p_playlist, p_input,
- p_playlist->p_root, true );
+ i_ret = DeleteFromInput( p_playlist, p_input, p_playlist->p_root );
PL_UNLOCK_IF( !b_locked );
return ( i_ret == VLC_SUCCESS ? VLC_SUCCESS : VLC_ENOITEM );
}
More information about the vlc-commits
mailing list