[vlc-devel] commit: Playlist: correct insertion index when moving items into nodes ( Jakob Leben )
git version control
git at videolan.org
Thu Aug 13 17:23:32 CEST 2009
vlc | branch: 1.0-bugfix | Jakob Leben <jakob.leben at gmail.com> | Sun Aug 2 14:13:41 2009 +0200| [b22d5fd3bb6758e01cd854f929475f0b7d823084] | committer: Rémi Denis-Courmont
Playlist: correct insertion index when moving items into nodes
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
(cherry picked from commit d687ddf36a0d88ec0fbd504f2fb4218194d32398)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b22d5fd3bb6758e01cd854f929475f0b7d823084
---
src/playlist/item.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/playlist/item.c b/src/playlist/item.c
index e804027..d12f57a 100644
--- a/src/playlist/item.c
+++ b/src/playlist/item.c
@@ -690,7 +690,7 @@ static int TreeMove( playlist_t *p_playlist, playlist_item_t *p_item,
* down of the playlist. So when removing the element we have
* to change the position as we loose one element
*/
- if( j < i_newpos )
+ if( p_detach == p_node && j < i_newpos )
i_newpos--;
/* Attach to new parent */
More information about the vlc-devel
mailing list