gstreamer/gst-libs/gst
Ratchanan Srirattanamet cc8f54468e audiobasesrc: always acquire if not acquired in _setcaps
audiobasesrc's setcaps contains an optimization that makes it not re-
acquire the ringbuffer if the caps have not changed. However, it doesn't
check if it has successfully acquired it or not. It's possible to have
the caps set but not having ringbuffer acquired if the previous attempt
to acquire fails.

This commit replaces the caps existence check with whether the
ringbuffer is acquired or not. There's no need to check for caps
existence because 1.) it's unlikely to be NULL if the ringbuffer is
acquired, and 2.) _setcaps shouldn't be called with a NULL caps.

This should also let the element retry on acquiring ringbuffer after an
error by re-setting the element's state to READY and back to PLAYING.
Whether this behavior is correct is up for debate.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/512>
2020-12-04 13:57:58 +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 audiobasesrc: always acquire if not acquired in _setcaps 2020-12-04 13:57:58 +00:00
fft Meson: Use pkg-config generator 2020-10-23 11:19:11 -04:00
gl glbasefilter: Need to check the display before lock it. 2020-12-04 00:23:38 +08:00
pbutils pbutils: Add support for muxing sinks usage in encoding profiles 2020-11-30 15:44:53 -03:00
riff Meson: Use pkg-config generator 2020-10-23 11:19:11 -04:00
rtp rtp/basepayload: implement support for rtp header extensions 2020-12-03 10:19:32 +00: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 video/converter: increase the number of cache lines for resampling 2020-12-03 06:39:09 +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