Microsoft DirectX 9.0


The SetStatus method enables or disables quality control.


HRESULT SetStatus(
    DWORD dwFlags



[in] Value that specifies whether to enable or disable quality control. Use DMO_QUALITY_STATUS_ENABLED to enable quality control, or zero to disable quality control.

Return Value

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

Return Code Description
E_INVALIDARG Invalid argument
S_OK Success


With quality control enabled, the DMO attempts to deliver samples on time. It can skip late samples if necessary. With quality control disabled, the DMO delivers every sample. If you enable quality control, call the IDMOQualityControl::SetNow method to specify the earliest time stamp that the DMO should process. Otherwise, the call to SetStatus succeeds but the DMO does not perform quality control.

By default, quality control is disabled.

See Also