[vlc-devel] commit: Fix #1899 as far as I can test it (in all cse this change is good). ( Rémi Duraffort )

Derk-Jan Hartman hartman at videolan.org
Sun Aug 24 14:55:54 CEST 2008


Can someone explain how this piece of the code works btw?
It seems really weird that the code to move trees still works (which  
it does) if you set i_newpos to 0.

DJ


On 24 aug 2008, at 14:21, git version control wrote:
> vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sun  
> Aug 24 14:22:30 2008 +0200|  
> [d7e7d6a95d3de22696dad5b1cb35f28e63d6ee7e] | committer: Rémi Duraffort
>
> Fix #1899 as far as I can test it (in all cse this change is good).
>
>> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d7e7d6a95d3de22696dad5b1cb35f28e63d6ee7e
> ---
>
> 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 eba3006..d72e415 100644
> --- a/src/playlist/item.c
> +++ b/src/playlist/item.c
> @@ -763,7 +763,7 @@ int playlist_TreeMove( playlist_t * p_playlist,  
> playlist_item_t *p_item,
>                                                 p_playlist- 
> >p_root_category,
>                                                 false );
>             if( p_node_category && p_item_category )
> -                TreeMove( p_playlist, p_item_category,  
> p_node_category, i_newpos );
> +                TreeMove( p_playlist, p_item_category,  
> p_node_category, 0 );
>         }
>         i_ret = VLC_SUCCESS;
>     }




More information about the vlc-devel mailing list