ref_vfmethod_endProc - shekh/VirtualDub2 GitHub Wiki
VirtualDub Plugin SDK 1.2
endProc video filter method
Cleans up filter instance resources when an operation ends.
int endProc(VDXFilterActivation *fa, const VDXFilterFunctions *ff);
fa | Pointer to filter activation structure. |
ff | Pointer to callback function structure. |
This method is not thread-safe.
This function must not throw exceptions (see Except()).
Zero if configuration is successful, non-zero on error or if the user canceled configuration.
If omitted, no default action is taken.
endProc
is called for all filters, even if the filter initialization
process is aborted. This means that a filter may have its endProc
called but not startProc
, so endProc
should check if a resource has
been allocated and mark it as unallocated after it is freed:
if (mfd->resource) { free(mfd->resource); mfd->resource = NULL; }
Copyright (C) 2007-2012 Avery Lee.