[vlc-devel] [PATCH 7/7] libvlc: media_list: don't set media if readonly
Thomas Guillem
thomas at gllm.fr
Thu Jan 15 16:24:41 CET 2015
---
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
More information about the vlc-devel
mailing list