[vlc-devel] [PATCH 7/7] libvlc: media_list: don't set media if readonly

Jean-Baptiste Kempf jb at videolan.org
Sat Jan 17 05:55:40 CET 2015


OK

On 15 Jan, Thomas Guillem wrote :
> ---
>  lib/media_list.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/media_list.c b/lib/media_list.c
> index 256d333..b122345 100644
> --- a/lib/media_list.c
> +++ b/lib/media_list.c
> @@ -286,7 +286,7 @@ void libvlc_media_list_set_media( libvlc_media_list_t * p_mlist,
>  
>  {
>      vlc_mutex_lock( &p_mlist->object_lock );
> -    if( p_mlist->p_internal_md )
> +    if( p_mlist->p_internal_md || !mlist_is_writable(p_mlist) )
>      {
>          vlc_mutex_unlock( &p_mlist->object_lock );
>          return;
> -- 
> 2.1.3
> 
> _______________________________________________
> 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