Share via


CBasePin::SetSink

Sets the object containing the IQualityControl interface that will receive quality-control messages.

HRESULT SetSink(
  IQualityControl* piqc
);

Parameters

  • piqc
    Pointer to the IQualityControl interface to which the notifications should be sent.

Return Values

Base class returns NOERROR by default. The overriding member function should return an HRESULT value.

Remarks

This member function implements the IQualityControl::SetSink method. The default implementation sets the m_pQSink data member to the piqc parameter passed in.

The IQualityControl::SetSink method tells a filter where to send quality-control messages it receives. When no sink has been explicitly set or if the last call to CBasePin::SetSink set the sink to NULL, the message should go upstream. The derived output pin class typically overrides CBasePin::Notify to enable this.

Requirements

DirectShow applications and DirectShow filters have different include file and link library requirements. See Setting Up the Build Environment for more information.

OS Versions: Windows CE 2.12 and later. Version 2.12 requires DXPAK 1.0 or later.
Header:

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.