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

Thomas Guillem thomas at gllm.fr
Mon Jan 19 11:22:52 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 fa07d8d..07864d1 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