After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 679652 - [0.11] Miniobject lock/unlock race
[0.11] Miniobject lock/unlock race
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
0.11.x
Other All
: Normal major
: 0.11.x
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-07-09 21:52 UTC by Matej Knopp
Modified: 2012-07-10 07:49 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch (1.28 KB, patch)
2012-07-09 21:52 UTC, Matej Knopp
none Details | Review

Description Matej Knopp 2012-07-09 21:52:49 UTC
Created attachment 218367 [details] [review]
Patch

gst_mini_object_lock/unlock with  GST_LOCK_FLAG_EXCLUSIVE sometimes fails to increment/decrement lock state. It happens when g_atomic_int_compare_and_exchange fails to update the variable on the first time, because access_mode does not have GST_LOCK_FLAG_EXCLUSIVE flag set anymore.
Comment 1 Wim Taymans 2012-07-10 07:49:47 UTC
commit 4afdef55860cbd638d158088c8c4fda9327682bd
Author: Matej Knopp <matej.knopp@gmail.com>
Date:   Mon Jul 9 23:47:53 2012 +0200

    miniobject: fix exclusive lock/unlock race