X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gst%2Fgsttaskpool.c;h=8344d9ad81fc44747cf04a4af34b4f9d399efa54;hb=8250b8d81a2c877c87167a4421fcf75d591c5b57;hp=4cb54f61769cc60a8244c24691dd42dc5c4a9f03;hpb=f85c1c46488abf2814c8ce51a892a4f5f9ab8b98;p=platform%2Fupstream%2Fgstreamer.git diff --git a/gst/gsttaskpool.c b/gst/gsttaskpool.c index 4cb54f6..8344d9a 100644 --- a/gst/gsttaskpool.c +++ b/gst/gsttaskpool.c @@ -21,6 +21,7 @@ /** * SECTION:gsttaskpool + * @title: GstTaskPool * @short_description: Pool of GStreamer streaming threads * @see_also: #GstTask, #GstPad * @@ -28,8 +29,6 @@ * implementation uses a regular GThreadPool to start tasks. * * Subclasses can be made to create custom threads. - * - * Last reviewed on 2009-04-23 (0.10.24) */ #include "gst_private.h" @@ -141,8 +140,6 @@ gst_task_pool_class_init (GstTaskPoolClass * klass) static void gst_task_pool_init (GstTaskPool * pool) { - /* clear floating flag */ - gst_object_ref_sink (pool); } #ifndef GST_DISABLE_GST_DEBUG @@ -167,7 +164,10 @@ gst_task_pool_new (void) { 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; } @@ -225,9 +225,9 @@ gst_task_pool_cleanup (GstTaskPool * 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, @@ -257,7 +257,7 @@ not_supported: * @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