On 5/23/22 07:07, RĂ©mi Bernon wrote:
+static HRESULT asf_callback_create(struct asf_reader *filter, IWMReaderCallback **out) +{
- struct asf_callback *impl;
- if (!(impl = calloc(1, sizeof(*impl))))
return E_OUTOFMEMORY;
- impl->IWMReaderCallback_iface.lpVtbl = &reader_callback_vtbl;
- impl->filter = filter;
- impl->ref = 1;
- *out = &impl->IWMReaderCallback_iface;
- return S_OK;
+}
Can we put the IWMReaderCallback interface inside of struct asf_reader, instead of making this a separate object?