Nikolay Sivov (@nsivov) commented about dlls/mfmediaengine/video_frame_sink.c:
- return CONTAINING_RECORD(iface, struct video_frame_sink, IMFMediaEventGenerator_iface);
+}
+static struct video_frame_sink *impl_from_IMFStreamSink(IMFStreamSink *iface) +{
- return CONTAINING_RECORD(iface, struct video_frame_sink, IMFStreamSink_iface);
+}
+static struct video_frame_sink *impl_from_IMFMediaTypeHandler(IMFMediaTypeHandler *iface) +{
- return CONTAINING_RECORD(iface, struct video_frame_sink, IMFMediaTypeHandler_iface);
+}
+static void video_frame_sink_samples_release(struct video_frame_sink *sink) +{
- for (int i = 0; i < ARRAYSIZE(sink->sample); i++)
ARRAY_SIZE is more common throughout the codebase.