Microsoft DirectX 9.0

CTransInPlaceInputPin::NotifyAllocator

The NotifyAllocator method specifies an allocator for the connection. This method implements the IMemInputPin::NotifyAllocator method.

Syntax

HRESULT NotifyAllocator(
    IMemAllocator *pAllocator,
    BOOL bReadOnly
);

Parameters

pAllocator

Pointer to the allocator's IMemAllocator interface.

bReadOnly

Flag that specifies whether samples from this allocator are read-only. If TRUE, samples are read-only.

Return Value

Returns an HRESULT value. Possible values include those shown in the following table.

Value Description
S_OK Success
E_FAIL Failure
E_POINTER NULL pointer argument

Remarks

The filter attempts to use the same allocator for both pin connections.

The previous case has the following exception:

See Also