| Previous | Next |
| MF_E_MEDIA_SOURCE_WRONGSTATE | MF_E_CANNOT_FIND_KEYFRAME_SAMPLE |
MF_E_MEDIA_SOURCE_NO_STREAMS_SELECTED
MF_E_MEDIA_SOURCE_NO_STREAMS_SELECTED points to the presentation descriptor, not to codec discovery. A presentation descriptor contains stream descriptors and a selected/deselected flag for each stream. The source produces data only for streams selected when it starts.
Select at least one usable stream
- Enumerate the descriptor with
GetStreamDescriptorCountandGetStreamDescriptorByIndex, recording the selection flag and major media type. - Call
SelectStreamfor the audio, video, or other stream that the topology will consume. - Build source-stream topology nodes only for descriptors selected in the same presentation descriptor.
Microsoft's custom-source guidance requires at least one stream to be selected in the default presentation configuration. Decoder installation does not fix an all-deselected descriptor because the source is not being asked to produce any stream data.
Microsoft: presentation descriptors · Microsoft: CreatePresentationDescriptor · Microsoft: custom media source stream selection
Looking for a different code? Search another status or error code.