IltmmMediaTypeDisp::ResetFormat

Summary

Clears and frees the format buffer.

Syntax

#include "ltmm.h"

Language Syntax
C HRESULT IltmmMediaTypeDisp_ResetFormat(pMediaTypeDisp)
C++ HRESULT ResetFormat()

Parameters

IltmmMediaTypeDisp *pMediaTypeDisp

Pointer to an IltmmMediaTypeDisp interface.

Returns

Value Meaning
S_OK The function was successful.
<> S_OK An error occurred. Refer to the Error Codes or the HRESULT error codes in the DirectShow documentation.

Comments

This method allows you to reset the format buffer and free the memory allocated to it. It is equivalent to IltmmMediaTypeDisp::put_FormatSize(0) or IltmmMediaTypeDisp::put_Format(x, 0).

After you call this method, get_FormatSize returns 0 and get_Format returns an empty variant.

Required DLLs and Libraries

Platforms

Win32, x64.

See Also

Functions

Topics

Help Version 22.0.2023.1.26
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Multimedia C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.