IltmmMediaTypeDisp::ResetMediaType

Summary

Clears and frees the all the media type settings.

Syntax

#include "ltmm.h"

Language Syntax
C HRESULT IltmmMediaTypeDisp_ResetMediaType(pMediaTypeDisp)
C++ HRESULT ResetMediaType()

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 whole media type (format buffer, type, subtype, etc). All the values set through any IltmmMediaTypeDisp::put_xxx properties are reset to defaults.

You would typically call this method if you want to start building the media type all over without freeing the existing interface and recreating a new one.

This method is implicitly called when you create a new instance of the IltmmMediaTypeDisp interface.

Required DLLs and Libraries

Platforms

Win32, x64.

See Also

Functions

Topics

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 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.