Commit 860f831f authored by Thomas Guillem's avatar Thomas Guillem

libvlc: don't release media_list while it's used by media

Indeed, events callbacks can access the media_list.
parent 5dafc001
...@@ -507,10 +507,11 @@ void libvlc_media_release( libvlc_media_t *p_md ) ...@@ -507,10 +507,11 @@ void libvlc_media_release( libvlc_media_t *p_md )
if( p_md->i_refcount > 0 ) if( p_md->i_refcount > 0 )
return; return;
uninstall_input_item_observer( p_md );
if( p_md->p_subitems ) if( p_md->p_subitems )
libvlc_media_list_release( p_md->p_subitems ); libvlc_media_list_release( p_md->p_subitems );
uninstall_input_item_observer( p_md );
vlc_gc_decref( p_md->p_input_item ); vlc_gc_decref( p_md->p_input_item );
vlc_cond_destroy( &p_md->parsed_cond ); vlc_cond_destroy( &p_md->parsed_cond );
......
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