[Bug 742684] New: aggregator: Usage of GCond is racy.
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Fri Jan 9 18:16:50 PST 2015
https://bugzilla.gnome.org/show_bug.cgi?id=742684
GStreamer | gst-plugins-bad | git
Summary: aggregator: Usage of GCond is racy.
Classification: Platform
Product: GStreamer
Version: git
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: gst-plugins-bad
AssignedTo: gstreamer-bugs at lists.freedesktop.org
ReportedBy: olivier.crete at ocrete.ca
QAContact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
Playing around with the new GstAggregator code, I get deadlocks with the
aggregator thread stuck on I see a macro that does:
g_mutex_lock()
g_cond_broadcast();
g_mutex_unlock();
This is always always always wrong. Because the g_cond_broadcast() may happen
between the time when the actual condition is checked and the time when the
g_cond_wait() is called, which results in the wait waiting forever.
--
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