[Bug 728596] New: A lock is released without being previously locked
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Sun Apr 20 02:54:26 PDT 2014
https://bugzilla.gnome.org/show_bug.cgi?id=728596
GStreamer | gstreamer (core) | 1.2.4
Summary: A lock is released without being previously locked
Classification: Platform
Product: GStreamer
Version: 1.2.4
OS/Version: FreeBSD
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: gstreamer (core)
AssignedTo: gstreamer-bugs at lists.freedesktop.org
ReportedBy: gustau.perez at gmail.com
QAContact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
In libs/gst/base/gstbasesrc.c:2817 the src object gets unlocked without
previously being locked. Because of that the app using gstreamer gets killed
because of a wrong unlock in platforms like FreeBSD.
The GST_LIVE_UNLOCK at the end calls g_mutex_unlock which then call
pthread_mutex_unlock. Doing that call to pthread_mutex_unlock breaks badly in
some platforms.
One solution would be to try to lock before unlocking. If we already hold the
mutex the pthread_mutex_lock will not block. That way the unlock will not fail.
--
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