On Tue Aug 8 07:46:52 2023 +0000, Rémi Bernon wrote:
I think media_type can be NULL, according to MSDN? In which case it's supposed to be set later using the IMFMediaTypeHandler interface. You should probably keep one on the streams (created with `MFCreateSimpleTypeHandler`) instead of a media type.
OK, I'll add a IMFMediaTypeHandler interface.
But the tests show that IMFMediaTypeHandler can be queried from stream sink. See: https://gitlab.winehq.org/wine/wine/-/blob/master/dlls/mf/tests/mf.c#L6983