[vlc-devel] [PATCH] fix for #15713, checked for time duration, if time duration not present, implies directory else song item

Jean-Baptiste Kempf jb at videolan.org
Thu Mar 17 11:03:37 CET 2016


What?
If time duration not present, imply directory?
That is totally false.

On 17 Mar, Avani Sharma wrote :
> ---
>  modules/notify/notify.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/modules/notify/notify.c b/modules/notify/notify.c
> index adc6de2..b6f3958 100644
> --- a/modules/notify/notify.c
> +++ b/modules/notify/notify.c
> @@ -172,8 +172,11 @@ static int ItemChange( vlc_object_t *p_this, const
> char *psz_var,
> 
>      /* Playing something ... */
>      input_item_t *p_input_item = input_GetItem( p_input );
> +    /* Checking for click on directories*/
> +    if(!input_item_GetDuration(p_input_item) > 0){
> +        return VLC_SUCCESS;
> +    }
>      psz_title = input_item_GetTitleFbName( p_input_item );
> -
>      /* We need at least a title */
>      if( EMPTY_STR( psz_title ) )
>      {
> -- 
> 2.1.4

> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel


-- 
With my kindest regards,

-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device


More information about the vlc-devel mailing list