[vlc-devel] [vlc-commits] VLM: use custom reference count instead of object destructor
Pierre Ynard
linkfanel at yahoo.fr
Mon Dec 19 02:10:57 CET 2011
> vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue
> Jul 5 18:09:04 2011 +0300| [71adf301e50aef185ef903d542896071f78323ff] |
> committer: Rémi Denis-Courmont
>
> VLM: use custom reference count instead of object destructor
>
> This should fix a crash whereby VLM is deleted before its child
> VOD server object.
> + if( --p_vlm->users == 0 )
> + {
> + assert( libvlc_priv(p_vlm->p_libvlc)->p_vlm = p_vlm );
> + libvlc_priv(p_vlm->p_libvlc)->p_vlm = NULL;
> + }
I think this triggers the assertion in InputEvent(), because it is
called during the media clean-up which is now done after setting p_vlm
to NULL.
--
Pierre Ynard
"Une âme dans un corps, c'est comme un dessin sur une feuille de papier."
More information about the vlc-devel
mailing list