KsReleaseCachedMdl function (ks.h)

The KsReleaseCachedMdl function is used to release the MDL acquired by the KsAcquireCachedMdl call.

Syntax

KSDDKAPI NTSTATUS KsReleaseCachedMdl(
  [in] REFGUID Guid,
  [in] PMDL    MdlAddr,
  [in] HANDLE  ReleaseContext
);

Parameters

[in] Guid

The GUID extracted from the MFSampleExtension_MDLCacheCookie attribute item of the IMFSample passed by the pipeline.

[in] MdlAddr

MDL address retrieved in the KsAcquireCachedMdl call. This should not be touched after the KsReleaseCachedMdl call.

[in] ReleaseContext

The context passed as an output in the KsAcquireCachedMdl call.

Return value

Returns STATUS_SUCCESS for success conditions.

Requirements

Requirement Value
Target Platform Universal
Header ks.h
Library Ks.lib