/**
* SECTION:gsttaskpool
+ * @title: GstTaskPool
* @short_description: Pool of GStreamer streaming threads
* @see_also: #GstTask, #GstPad
*
static void
gst_task_pool_init (GstTaskPool * pool)
{
- /* clear floating flag */
- gst_object_ref_sink (pool);
}
#ifndef GST_DISABLE_GST_DEBUG
{
GstTaskPool *pool;
- pool = g_object_newv (GST_TYPE_TASK_POOL, 0, NULL);
+ pool = g_object_new (GST_TYPE_TASK_POOL, NULL);
+
+ /* clear floating flag */
+ gst_object_ref_sink (pool);
return pool;
}
*
* Start the execution of a new thread from @pool.
*
- * Returns: (transfer none): a pointer that should be used for the
- * gst_task_pool_join function. This pointer can be NULL, you must
- * check @error to detect errors.
+ * Returns: (transfer none) (nullable): a pointer that should be used
+ * for the gst_task_pool_join function. This pointer can be %NULL, you
+ * must check @error to detect errors.
*/
gpointer
gst_task_pool_push (GstTaskPool * pool, GstTaskPoolFunction func,
* @pool: a #GstTaskPool
* @id: the id
*
- * Join a task and/or return it to the pool. @id is the id obtained from
+ * Join a task and/or return it to the pool. @id is the id obtained from
* gst_task_pool_push().
*/
void