[PATCH] mfreadwrite: Introduce an internal source reader refcount.

Giovanni Mascellani gmascellani at codeweavers.com
Thu Feb 10 07:30:08 CST 2022


Hi,

Il 10/02/22 14:17, Nikolay Sivov ha scritto:
> The application that created it. It works differently, but I think I 
> found a way.

Yes, my comment was in the context of that mfreadwrite test with Rémi's 
changes: what we want to check is that the source reader was correctly 
and fully released. With Rémi's changes checking that Release returns 0 
is not enough, because there is now an internal reference counter that 
is not exposed. It might be that there are some internal references that 
are not correctly cleared. One convenient way to check if the source 
reader was fully released is to check whether the media source was 
released, because in the context of the test nothing else should hold a 
reference to the media source.

Of course, other applications may want to keep a reference to the media 
source, nothing is preventing that.

Giovanni.



More information about the wine-devel mailing list