GST_TASK_STATE
GST_TASK_WAIT
-gst_task_create
+gst_task_new
gst_task_set_lock
gst_task_set_priority
* GstTypeFind
gst_type_find_peek() returns a const guint8 * now.
+* GstTask
+
+ gst_task_create() -> gst_task_new()
+
* GstAdapter
gst_adapter_peek() is removed, use gst_adapter_map() and gst_adapter_unmap()
to get access to raw data from the adapter.
GST_OBJECT_LOCK (pad);
task = GST_PAD_TASK (pad);
if (task == NULL) {
- task = gst_task_create (func, data);
+ task = gst_task_new (func, data);
gst_task_set_lock (task, GST_PAD_GET_STREAM_LOCK (pad));
gst_task_set_thread_callbacks (task, &thr_callbacks, pad, NULL);
GST_DEBUG_OBJECT (pad, "created task");
* and gst_task_stop() respectively or with the gst_task_set_state() function.
*
* A #GstTask will repeatedly call the #GstTaskFunction with the user data
- * that was provided when creating the task with gst_task_create(). While calling
+ * that was provided when creating the task with gst_task_new(). While calling
* the function it will acquire the provided lock. The provided lock is released
* when the task pauses or stops.
*
}
/**
- * gst_task_create:
+ * gst_task_new:
* @func: The #GstTaskFunction to use
* @data: (closure): User data to pass to @func
*
* MT safe.
*/
GstTask *
-gst_task_create (GstTaskFunction func, gpointer data)
+gst_task_new (GstTaskFunction func, gpointer data)
{
GstTask *task;
GType gst_task_get_type (void);
-GstTask* gst_task_create (GstTaskFunction func, gpointer data);
+GstTask* gst_task_new (GstTaskFunction func, gpointer data);
void gst_task_set_lock (GstTask *task, GStaticRecMutex *mutex);
void gst_task_set_priority (GstTask *task, GThreadPriority priority);
/* create a task with some dummy function, we're not actually going to run
* the task here */
- task = gst_task_create ((GstTaskFunction) gst_object_unref, NULL);
+ task = gst_task_new ((GstTaskFunction) gst_object_unref, NULL);
ASSERT_OBJECT_REFCOUNT (task, "task", 1);
GstTask *t;
gboolean ret;
- t = gst_task_create (task_func2, &t);
+ t = gst_task_new (task_func2, &t);
fail_if (t == NULL);
gst_task_set_lock (t, &task_mutex);
GstTask *t;
gboolean ret;
- t = gst_task_create (task_func, NULL);
+ t = gst_task_new (task_func, NULL);
fail_if (t == NULL);
gst_task_set_lock (t, &task_mutex);
GstTask *t;
gboolean ret;
- t = gst_task_create (task_func, NULL);
+ t = gst_task_new (task_func, NULL);
fail_if (t == NULL);
gst_task_set_lock (t, &task_mutex);
GstTask *t;
gboolean ret;
- t = gst_task_create (task_func, NULL);
+ t = gst_task_new (task_func, NULL);
fail_if (t == NULL);
/* stop should be possible without lock */
{
GstTask *t;
- t = gst_task_create (task_func, NULL);
+ t = gst_task_new (task_func, NULL);
fail_if (t == NULL);
gst_object_unref (t);
gst_tag_setter_reset_tags
gst_tag_setter_set_tag_merge_mode
gst_task_cleanup_all
- gst_task_create
gst_task_get_pool
gst_task_get_state
gst_task_get_type
gst_task_join
+ gst_task_new
gst_task_pause
gst_task_pool_cleanup
gst_task_pool_get_type