Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix current position adjustment when moving a playlist item.

  • Loading branch information...
commit 9c6ae2bd2979eba6d55424b195ec88ee8f376993 1 parent a523e1b
Maksym Veremeyenko authored ddennedy committed
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/framework/mlt_playlist.c
View
4 src/framework/mlt_playlist.c
@@ -919,7 +919,9 @@ int mlt_playlist_move( mlt_playlist self, int src, int dest )
if ( current == src )
current = dest;
- else if ( current > src && current < dest )
+ else if ( src < current && current < dest )
+ current --;
+ else if ( dest < current && current < src )
current ++;
else if ( current == dest )
current = src;
Please sign in to comment.
Something went wrong with that request. Please try again.