IMFMediaSourceTopologyProvider::GetMediaSourceTopology method (mfidl.h)
Returns a topology for a media source that builds an internal topology.
Syntax
HRESULT GetMediaSourceTopology(
[in] IMFPresentationDescriptor *pPresentationDescriptor,
[out] IMFTopology **ppTopology
);
Parameters
[in] pPresentationDescriptor
A pointer to the IMFPresentationDescriptor interface of the media source's presentation descriptor. To get this pointer, either call IMFMediaSource::CreatePresentationDescriptor on the media source, or get the pointer from the MENewPresentation event.
[out] ppTopology
Receives a pointer to the topology's IMFTopology interface. The caller must release the interface.
Return value
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
Return code | Description |
---|---|
|
The method succeeded. |
|
Invalid argument. For example, a NULL input parameter, or the presentation descriptor is not valid. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | mfidl.h |
Library | Mfuuid.lib |