microsoft / FFmpegInterop

This is a code sample to make it easier to use FFmpeg in Windows applications.
Apache License 2.0
1.29k stars 310 forks source link

Fix activation of MSS with no stream descriptors #283

Closed brbeec closed 3 years ago

brbeec commented 3 years ago

The platform's IMediaStreamSourceFactory implementation will throw an error in its factory methods if a valid IMediaStreamDescriptor is not provided.

This change works around this issue by using IActivationFactory::ActivateInstance() to activate an MSS without a valid IMediaStreamDescriptor.