Commit b60f0307 authored by Xavier Martin's avatar Xavier Martin

correction of a small bug in the function move

parent 27c5a8dd
......@@ -1922,7 +1922,12 @@ static void MacroDo( httpd_file_sys_t *p_args,
uri_extract_value( p_request, "psz_newpos", psz_newpos, 6 );
i_pos = atoi( psz_pos );
i_newpos = atoi( psz_newpos );
playlist_Move( p_sys->p_playlist, i_pos, i_newpos + 1 );
if ( i_pos < i_newpos )
{
playlist_Move( p_sys->p_playlist, i_pos, i_newpos + 1 );
} else {
playlist_Move( p_sys->p_playlist, i_pos, i_newpos );
}
msg_Dbg( p_intf, "requested move playlist item %d to %d", i_pos, i_newpos);
break;
}
......
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