共用方式為


CBaseInputPin::NotifyAllocator

 
Microsoft DirectShow 9.0

CBaseInputPin::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 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.

Requirements

**  Header:** Declared in Amfilter.h; include Streams.h.

**  Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).

See Also