gstreamer/gst-libs
Sebastian Dröge 9a55945c0b appsrc/appsink: Make setting/replacing callbacks thread-safe
Previously we would simply use them without any locking at all, while
using the object lock for setting them. Nothing prevented new callbacks
to be set in the meantime, potentially calling a callback with already
freed user_data.

To prevent this move the callbacks into a reference counted struct and
use the appsrc/appsink mutex to protect access to it, which is used in
all functions calling the callbacks already anyway.

Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/issues/729
2020-02-14 14:42:19 +00:00
..
gst appsrc/appsink: Make setting/replacing callbacks thread-safe 2020-02-14 14:42:19 +00:00
meson.build Add support for Meson as alternative/parallel build system 2016-08-20 11:09:51 +01:00