microsoft / media-foundation

Repository for Windows Media Foundation related tools and samples
MIT License
144 stars 31 forks source link

MediaEngineEMEUWPSample doesn't display anything #30

Closed jrmuizel closed 2 years ago

jrmuizel commented 2 years ago

I get an exception thrown in MediaEngineExtension::BeginCreateObject because the type is MF_OBJECT_BYTESTREAM and not MF_OBJECT_MEDIASOURCE. I'm not sure if the exception is expected or not. MediaEngineExtension::BeginCreateObject is called a second time with MF_OBJECT_MEDIASOURCE and succeeds that time.

DavidS-msft commented 2 years ago

That is expected. The Media Engine, for optimization, may attempt to first request a bytestream instead of a media source.

jrmuizel commented 2 years ago

@kumraj what was the change that fixed this?