Rémi Bernon (@rbernon) commented about dlls/winegstreamer/video_encoder.c:
- TRACE("iface %p increasing refcount to %lu.\n", encoder, refcount);
- return refcount;
+}
+static ULONG WINAPI transform_Release(IMFTransform *iface) +{
- struct video_encoder *encoder = impl_from_IMFTransform(iface);
- ULONG refcount = InterlockedDecrement(&encoder->refcount);
- TRACE("iface %p decreasing refcount to %lu.\n", encoder, refcount);
- if (!refcount)
- {
if (encoder->attributes)
IMFAttributes_Release(encoder->attributes);
You can remove the if.