[vlc-devel] commit: variables: print a warning if the callback isn' t found or if a close callback ( Rémi Duraffort )
Rémi Duraffort
ivoire at videolan.org
Mon Aug 31 10:34:14 CEST 2009
> >>> variables: print a warning if the callback isn't found or if a close
> >>> callback
> >>> is found (same function but not same data).
> >>> This can be usefull to find some errors.
> >>
> >> I would probably assert here.
> >
> > I don't know because you can have some valid code that generate such
> > warnings (valid IMHO) like the Qt4 intf.
>
> We should assert that a matching registration was found.
> Of course, the same function might be registered multiple times, with
> identical or different opaque pointers. But nobody should ever try to
> delete a callback that was not registered.
You are right.
Qt4 is fixed and the assert is now present.
Regards
--
Rémi Duraffort | ivoire
More information about the vlc-devel
mailing list