mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-21 06:38:19 +00:00
bufferpool: Clarify GstBufferPoolClass::start() usage
Make it clear that chaining up to the default implementation is optional if subclasses do not want preallocation. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6328>
This commit is contained in:
parent
69d0501e8f
commit
27662d5fb8
2 changed files with 7 additions and 1 deletions
|
@ -4413,7 +4413,10 @@ This function takes ownership of @config.</doc>
|
||||||
</virtual-method>
|
</virtual-method>
|
||||||
<virtual-method name="start">
|
<virtual-method name="start">
|
||||||
<doc xml:space="preserve" filename="../subprojects/gstreamer/gst/gstbufferpool.h">Start the bufferpool. The default implementation will preallocate
|
<doc xml:space="preserve" filename="../subprojects/gstreamer/gst/gstbufferpool.h">Start the bufferpool. The default implementation will preallocate
|
||||||
min-buffers buffers and put them in the queue.</doc>
|
min-buffers buffers and put them in the queue.
|
||||||
|
|
||||||
|
Subclasses do not need to chain up to the parent's default implementation
|
||||||
|
if they don't want min-buffers based preallocation.</doc>
|
||||||
<source-position filename="../subprojects/gstreamer/gst/gstbufferpool.h"/>
|
<source-position filename="../subprojects/gstreamer/gst/gstbufferpool.h"/>
|
||||||
<return-value transfer-ownership="none">
|
<return-value transfer-ownership="none">
|
||||||
<doc xml:space="preserve" filename="../subprojects/gstreamer/gst/gstbufferpool.h">whether the pool could be started.</doc>
|
<doc xml:space="preserve" filename="../subprojects/gstreamer/gst/gstbufferpool.h">whether the pool could be started.</doc>
|
||||||
|
|
|
@ -157,6 +157,9 @@ struct _GstBufferPoolClass {
|
||||||
* Start the bufferpool. The default implementation will preallocate
|
* Start the bufferpool. The default implementation will preallocate
|
||||||
* min-buffers buffers and put them in the queue.
|
* min-buffers buffers and put them in the queue.
|
||||||
*
|
*
|
||||||
|
* Subclasses do not need to chain up to the parent's default implementation
|
||||||
|
* if they don't want min-buffers based preallocation.
|
||||||
|
*
|
||||||
* Returns: whether the pool could be started.
|
* Returns: whether the pool could be started.
|
||||||
*/
|
*/
|
||||||
gboolean (*start) (GstBufferPool *pool);
|
gboolean (*start) (GstBufferPool *pool);
|
||||||
|
|
Loading…
Reference in a new issue