[vlc-devel] [PATCH] playlist: Media Library automatic item removal

Rémi Denis-Courmont remi at remlab.net
Mon May 25 14:25:21 CEST 2015


    Hello,

Le 2015-05-25 14:52, Aleksandr Pasechnik a écrit :
> Added a setting that automatically removes the last played item from 
> the
> playlist once the next item starts playing. This setting only effects
> the Media Library portion of the playlist.

That's going to confuse users.

> Items are not removed if the user manually selects an item to play 
> from the
> playlist.

That's even more confusing.

> diff --git a/src/playlist/thread.c b/src/playlist/thread.c
> index 178c5cc..d55af83 100644
> --- a/src/playlist/thread.c
> +++ b/src/playlist/thread.c
> @@ -240,6 +240,16 @@ static bool PlayItem( playlist_t *p_playlist,
> playlist_item_t *p_item )
>      var_SetAddress( p_playlist, "input-current", p_input_thread );
>
>      PL_LOCK;
> +
> +    if( strcmp( PLI_NAME( p_sys->status.p_node ), "Media Library" ) 
> == 0 )

This is very brittle. In fact, it is plain wrong.

-- 
Rémi Denis-Courmont
Remlab T:mi
http://www.remlab.net/



More information about the vlc-devel mailing list