[vlc-commits] libvlc: media_list: don't set media if readonly
Thomas Guillem
git at videolan.org
Tue Jan 20 11:20:54 CET 2015
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Jan 20 10:46:30 2015 +0100| [bcb1b3bd539159ed0695f7fa0cd22a42f9df6fe5] | committer: Jean-Baptiste Kempf
libvlc: media_list: don't set media if readonly
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bcb1b3bd539159ed0695f7fa0cd22a42f9df6fe5
---
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;
More information about the vlc-commits
mailing list