[vlc-devel] vlm bug
sebastien-devel at celeos.eu
Fri Sep 5 16:36:28 CEST 2008
I discovered a bug in vlm :
libvlc_vlm_add_broadcast and libvlc_vlm_add_vod functions
It happens when you try to add multiples media with the same name.
The first time you add a media with a name already in use,
libvlc_exception_raise does nothing, so the media is deleted twice.
If you keep going (add another media with the same name again), the exception is
raised, but it is too late, the first time messed everything up.
It would be better to return after libvlc_exception_raise (I tested and it
works, see attached patch).
But why the exception is not raised the first time ?
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 992 bytes
Desc: not available
More information about the vlc-devel