Re: [PATCH v2 0/5] MR5879: winegstreamer: Implement stubs for h264 encoder.
19 Jun
2024
19 Jun
'24
10:11 a.m.
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.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/5879#note_73695
547
Age (days ago)
547
Last active (days ago)
0 comments
1 participants
participants (1)
-
Rémi Bernon