On Tue Sep 6 20:28:13 2022 +0000, **** wrote:
Zebediah Figura replied on the mailing list:
On 9/6/22 09:12, Nikolay Sivov wrote: > +static HRESULT evr_get_service(void *unk, REFGUID service, REFIID riid, void **obj) > +{ > + IMFGetService *gs; > + HRESULT hr; > + > + if (SUCCEEDED(hr = IUnknown_QueryInterface((IUnknown *)unk, &IID_IMFGetService, (void **)&gs))) > + { > + hr = IMFGetService_GetService(gs, service, riid, obj); > + IMFGetService_Release(gs); > + } > + > + return hr; > +} > + Isn't this MFGetService()? (It also isn't really evr-specific, so I'd be inclined to omit the evr_ prefix, but that's a rather minor quibble.)
Yes, it is, but I don't want to link to mf.dll just for that.