[Bug 795987] pad: Race condition with probe cookies causing the same probe to be called multiple times

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu May 10 07:13:53 UTC 2018


https://bugzilla.gnome.org/show_bug.cgi?id=795987

--- Comment #3 from Sebastian Dröge (slomo) <slomo at coaxion.net> ---
(In reply to Tim-Philipp Müller from comment #2)
> Maybe we can do something with an g_alloca()-ed array? Keep track how much
> space we allocated, and if we exceed it just do a new g_alloca() copy old
> array over and continue. There's surely a limit to the number of probes on a
> pad in practice?

Yes except that if you use g_alloca() inside a loop, the allocation will be
gone every iteration (we have a "goto again" loop here).

I could allocate a big enough array with g_alloca (16 items is surely enough?),
and if that ever happens to be not enough re-allocate with g_malloc

-- 
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