[vlc-devel] commit: input state: don't delete non existing callbacks ( Rafaël Carré )

Rafaël Carré rafael.carre at gmail.com
Tue Sep 1 09:15:30 CEST 2009


On Tue, 01 Sep 2009 16:34:01 +1000
xxcv <xxcv07 at gmail.com> wrote:

> How do you check if the callback exist or not isn't the job of the
> core to manage callbacks ?

Usually it's the code which added the callbacks which is responsible
for deleting them.

You can't check if some callback is registered, you have to keep
reference of them in your code.

> and why isn't it safe to delete a callback
> when the callback does not exist?

Because it can reveal a bug in your code

> Thanks
> Regards.



-- 
Rafaël Carré
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20090901/d7d9aacb/attachment.sig>


More information about the vlc-devel mailing list