Commit bcb1b3bd authored by Thomas Guillem's avatar Thomas Guillem Committed by Jean-Baptiste Kempf

libvlc: media_list: don't set media if readonly

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 16565d4c
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment