IMFMediaSource::Shutdown Method

Shuts down the media source and releases the resources it is using.

Syntax

public:
HRESULT Shutdown()  

Return value

Type: HRESULT 

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return codes
Return code Description
S_OK The method succeeded.

Refer to Media Foundation return codes.

Remarks

If the application creates the media source, either directly or through the source resolver, the application is responsible for calling Shutdown to avoid memory or resource leaks.

After this method is called, methods on the media source and all of its media streams return MF_E_SHUTDOWN (except for IUnknown methods).

Requirements

Header: Declared in mfidl.h.

Library: Use mfuuid.lib.