[PATCH] winegstreamer: Do not block forever if EOS races with command queue.

Zebediah Figura zfigura at codeweavers.com
Tue Feb 8 11:50:40 CST 2022


On 2/8/22 11:11, Giovanni Mascellani wrote:
> Currently, the winegstreamer media source checks for EOS when
> RequestSample() is called, but doesn't handle the cases when EOS
> is detected between the RequestSample() call and the moment when
> the request is popped from the command queue and serviced. This
> can result in the media source waiting forever for a sample and
> get stuck.

I'm having a hard time understanding the race here. Can wait_on_sample() 
be called multiple times concurrently for the same stream? If not I 
don't see how it can race with itself.



More information about the wine-devel mailing list