26 Jun
2024
26 Jun
'24
12:47 p.m.
Rémi Bernon (@rbernon) commented about dlls/winegstreamer/video_encoder.c:
+ ULONG i; + + TRACE("iface %p, id %#lx, type %p, flags %#lx.\n", iface, id, type, flags); + + if (!type) + { + if (encoder->output_type) + { + IMFMediaType_Release(encoder->output_type); + encoder->output_type = NULL; + } + return S_OK; + } + + if (FAILED(IMFMediaType_GetGUID(type, &MF_MT_MAJOR_TYPE, &major)) || + FAILED(IMFMediaType_GetGUID(type, &MF_MT_SUBTYPE, &subtype)))
if (FAILED(IMFMediaType_GetGUID(type, &MF_MT_MAJOR_TYPE, &major))
|| FAILED(IMFMediaType_GetGUID(type, &MF_MT_SUBTYPE, &subtype)))
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/5931#note_74465