[Bug 796737] ASYNC_DONE message is dropped leading to hanging application

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon Jul 9 11:27:05 UTC 2018


https://bugzilla.gnome.org/show_bug.cgi?id=796737

--- Comment #2 from Joakim Johansson <Joakim.Johansson at axis.com> ---
I have tried some different solutions to this race condition, wait for the
polling flag to be cleared before continue with the async_start handling but
then I got some other problems as well as it did not solve this race condition.


However, it seems to be one simple solution and I have run my test 1 million
times without getting failing once and I triggered the race condition scenario
30 times.

All I needed to do in the end was to send the ASYNC_DONE message to the parent
when pending == VOID_PENDING which is basically the same as ASYNC_START is
handled in the "was_busy" branch.

I have added this patch for reveiw

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list