ref_vfmethod_endProc - shekh/VirtualDub2 GitHub Wiki

VirtualDub Plugin SDK 1.2

endProc video filter method

endProc

Cleans up filter instance resources when an operation ends.

int endProc(VDXFilterActivation *fa, const VDXFilterFunctions *ff);

Parameters

fa Pointer to filter activation structure.
ff Pointer to callback function structure.

Thread safety

This method is not thread-safe.

Exceptions

This function must not throw exceptions (see Except()).

Return value

Zero if configuration is successful, non-zero on error or if the user canceled configuration.

Default behavior

If omitted, no default action is taken.

Remarks

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.

⚠️ **GitHub.com Fallback** ⚠️