gstreamer/gst-libs/gst
Jan Alexander Steffens (heftig) b3fe2d3623 videoaggregator: Fix locking around vagg->info
Take `GST_OBJECT_LOCK` when writing `vagg->info`, so that reading in
subclasses is protected against races, as documented in the struct.

    /*< public >*/
    /* read-only, with OBJECT_LOCK */
    GstVideoInfo                  info;

`gst_video_aggregator_default_negotiated_src_caps` should take the
`GST_VIDEO_AGGREGATOR_LOCK` to avoid racing with
`gst_video_aggregator_reset` called by
`gst_video_aggregator_release_pad` of the last sinkpad. Otherwise it can
happen that `latency = gst_util_uint64_scale (...` gets called with a
zero framerate.

There doesn't seem to be any reason not to use the local `info` instead
of `vagg->info`, so do that.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/915>
2020-11-09 16:04:06 +00:00
..
allocators fdmemory: Allow for change of protection mode 2020-10-28 17:11:05 +00:00
app Meson: Use pkg-config generator 2020-10-23 11:19:11 -04:00
audio Meson: Use pkg-config generator 2020-10-23 11:19:11 -04:00
fft Meson: Use pkg-config generator 2020-10-23 11:19:11 -04:00
gl gl: Fix prototype of glGetSynciv() 2020-11-03 16:40:38 +02:00
pbutils Meson: Use pkg-config generator 2020-10-23 11:19:11 -04:00
riff Meson: Use pkg-config generator 2020-10-23 11:19:11 -04:00
rtp Meson: Use pkg-config generator 2020-10-23 11:19:11 -04:00
rtsp Meson: Use pkg-config generator 2020-10-23 11:19:11 -04:00
sdp Meson: Use pkg-config generator 2020-10-23 11:19:11 -04:00
tag Meson: Use pkg-config generator 2020-10-23 11:19:11 -04:00
video videoaggregator: Fix locking around vagg->info 2020-11-09 16:04:06 +00: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