doc: Clarify that gst_buffer_pool_acquire_buffer() blocks by default
authorXavier Claessens <xavier.claessens@collabora.com>
Tue, 30 Aug 2022 14:48:18 +0000 (10:48 -0400)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sun, 11 Sep 2022 19:29:19 +0000 (19:29 +0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2955>

subprojects/gstreamer/gst/gstbufferpool.c

index 96192cf..c98f7e1 100644 (file)
@@ -1262,7 +1262,9 @@ default_reset_buffer (GstBufferPool * pool, GstBuffer * buffer)
  * @params: (transfer none) (allow-none): parameters.
  *
  * Acquires a buffer from @pool. @buffer should point to a memory location that
- * can hold a pointer to the new buffer.
+ * can hold a pointer to the new buffer. When the pool is empty, this function
+ * will by default block until a buffer is released into the pool again or when
+ * the pool is set to flushing or deactivated.
  *
  * @params can contain optional parameters to influence the allocation.
  *