[Bug 742684] aggregator: Usage of GCond is racy.

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Sat Jan 10 07:48:53 PST 2015


https://bugzilla.gnome.org/show_bug.cgi?id=742684
  GStreamer | gst-plugins-bad | git

--- Comment #5 from Nicolas Dufresne (stormer) <nicolas.dufresne at collabora.co.uk> 2015-01-10 15:48:50 UTC ---
(In reply to comment #4) 
> > g_mutex_lock();
> > while (!conditions)
> >   g_cond_wait();
> > g_mutex_unlock()

This seems like a better way to pinpoint the problem (stating there is no loop
around condition would have made this bug report nicer imho). There exist valid
use case for the pattern Olivier used, sometimes you just want to make your
waiter spin in order to recheck more complex conditions).

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- 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