Microsoft DirectX 9.0 |
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 S_OK.
Remarks
During the pin connection, the output pin chooses an allocator and calls this method to notify the input pin. The output pin can use the allocator that the input pin proposed in the IMemInputPin::GetAllocator method, or it can provide its own allocator.
See Also