gstreamer/gst-libs/gst
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
..
allocators Remove autotools build system 2019-10-13 14:15:43 +01:00
app appsrc/appsink: Make setting/replacing callbacks thread-safe 2020-02-14 14:42:19 +00:00
audio audioencoder: fix segment event leak 2019-12-20 12:43:35 +00:00
fft fft: Update our kiss fft version 2019-12-27 11:53:14 +02:00
gl gl/window/win32: implement get_window_handle() 2020-02-13 12:31:43 +11:00
pbutils discoverer: Start discovering next URI from right thread 2020-02-10 17:16:42 -03:00
riff Remove autotools build system 2019-10-13 14:15:43 +01:00
rtp rtpbasepayload: add property for embedding twcc sequencenumbers 2020-02-14 09:40:59 +00:00
rtsp rtspurl: add API method to create request uri combined with control url 2019-12-27 16:57:08 +00:00
sdp Remove autotools build system 2019-10-13 14:15:43 +01:00
tag Remove autotools build system 2019-10-13 14:15:43 +01:00
video videoaggregator: handle gap buffers properly 2020-01-30 19:02:44 +01:00
gettext.h Fix FSF address 2012-11-03 23:05:09 +00:00
glib-compat-private.h Fix FSF address 2012-11-03 23:05:09 +00:00
gst-i18n-app.h tools: add simple command-line gst-play utility for testing purposes 2013-08-16 15:45:23 +01:00
gst-i18n-plugin.h Fix FSF address 2012-11-03 23:05:09 +00:00
meson.build meson: Add feature options for all plugins 2018-07-27 18:42:11 +05:30