Shuts down the media source and releases the resources it is using.
public:
HRESULT Shutdown()
Type: HRESULTÂ
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
| Return code | Description |
|---|---|
| S_OK | The method succeeded. |
Refer to Media Foundation return codes.
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).
Header: Declared in mfidl.h.
Library: Use mfuuid.lib.