Commit bbf6e4fe authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

playlist: Correctly indicate why we put a buggy yield() at this place. And...

playlist: Correctly indicate why we put a buggy yield() at this place. And document a bit that nasty recusrsive ML_Decref() function.

This comes with my official excuses to funman.
parent 0c7849a6
......@@ -484,9 +484,16 @@ void playlist_LastLoop( playlist_t *p_playlist )
p_playlist->pp_sds[0]->p_sd->psz_module );
}
vlc_gc_incref( p_playlist->p_ml_category->p_input );
playlist_MLDump( p_playlist );
/* We don't need the media library anymore */
/* Because this nasty recursive function decreases the
* p_playlist->p_ml_category refcount, it may get deleted.
* However we will delete the p_playlist->p_ml_category in the
* following FOREACH. */
vlc_gc_incref( p_playlist->p_ml_category );
/* Decref all subitems, and the given items */
ML_Decref( p_playlist->p_ml_category );
PL_LOCK;
......
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