[Bug 758060] gst_mini_object_unlock: assertion 'state >= SHARE_ONE' failed
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Wed Aug 1 11:59:04 UTC 2018
https://bugzilla.gnome.org/show_bug.cgi?id=758060
--- Comment #7 from Sebastian Dröge (slomo) <slomo at coaxion.net> ---
(In reply to Miguel París Díaz from comment #5)
> Created attachment 373237 [details] [review]
> miniobject: lock: check share refs does not go out of bounds
>
> I am proposing this patch in order to detect if the counter used for
> GST_LOCK_FLAG_EXCLUSIVE mode is going out of bounds.
>
> It seems that it can have up to 32767 (0x7FFF0000 / 0x10000) refs.
> Could this be not enough for some use cases and then provoke the warning in
> gst_mini_object_unlock ?
>
> I am not sure if the use cases exposed here are dealing with that, but this
> check is harmless and useful if the counter is aiming to go out of bounds.
How would you get to 32767 *valid* references? :)
--
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