[Vortex] [PATCH] Add some sanity assertions

Francis Brosnan Blazquez francis at aspl.es
Thu Sep 9 19:48:33 CEST 2010

Hi Benoit,

If you want to, you can build on this patch upgrading it to something
like vortex_assert which is only effective when the user activates it
due to a vortex_assert_enable or because an environment variable
activated like VORTEX_ASSERT=1. 

See how it is implemented vortex_log_enable and vortex_log_is_enabled...


> Hello,
> Attached patch adds some sanity assertions.
> Basically, if any ref_count goes under 0, it's a bug.
> With this patch activated, I sometimes get frame->ref_count < 0 in
> vortex_frame_factory.c from vortex 1.0
> I don't know why yet.
> Later,
> Benoît Amiaux
> _______________________________________________
> Vortex mailing list
> Vortex at lists.aspl.es
> http://lists.aspl.es/cgi-bin/mailman/listinfo/vortex
Francis Brosnan Blazquez <francis at aspl.es>

More information about the Vortex mailing list