[vlc-devel] [PATCH 3/5] libvlc: media_list: don't set media if readonly
Thomas Guillem
thomas at gllm.fr
Tue Jan 20 10:46:30 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 62f0c31..74218b0 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