[vlc-devel] Bug : vlm destructor never called
Sébastien Escudier
sebastien-devel at celeos.eu
Fri Dec 19 09:28:57 CET 2008
Hi
I noticed vlm destructor is never called (so medias are never destroyed when I
quit).
Step to reproduce at the end of the mail.
When vlm_Delete is called, in vlc_object_release( p_vlm ), irefcount == 2
So this comment is false :
/* vlm_Delete() is serialized against itself, and against vlm_New().
* This way, vlm_Destructor () (called from vlc_objet_release() above)
* is serialized against setting libvlc_priv->p_vlm from vlm_New(). */
This may be vlc_object_attach( p_vlm, p_this->p_libvlc ); in __vlm_New never
detached ?
As I am not sure I don't send a patch, I let you fix this.
Regards
Step to reproduce :
test.vlm :
new test1 broadcast enabled
setup test1 input some_video
setup test1 output #std{access=file,mux=mp4,dst=test1.mp4}
control test1 play
then, when you quit, test1.mp4 will never be closed so unreadable (no moov box)
More information about the vlc-devel
mailing list