[Bug 710342] New: task: gst_task_new returns floating reference?
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Thu Oct 17 01:56:39 CEST 2013
https://bugzilla.gnome.org/show_bug.cgi?id=710342
GStreamer | gstreamer (core) | git
Summary: task: gst_task_new returns floating reference?
Classification: Platform
Product: GStreamer
Version: git
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: gstreamer (core)
AssignedTo: gstreamer-bugs at lists.freedesktop.org
ReportedBy: self at brendanlong.com
QAContact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
Looking at gst_task_new:
/**
* gst_task_new:
* @func: The #GstTaskFunction to use
* @user_data: User data to pass to @func
* @notify: the function to call when @user_data is no longer needed.
*
* Create a new Task that will repeatedly call the provided @func
* with @user_data as a parameter. Typically the task will run in
* a new thread.
*
* The function cannot be changed after the task has been created. You
* must create a new #GstTask to change the function.
*
* This function will not yet create and start a thread. Use
gst_task_start() or
* gst_task_pause() to create and start the GThread.
*
* Before the task can be used, a #GRecMutex must be configured using the
* gst_task_set_lock() function. This lock will always be acquired while
* @func is called.
*
* Returns: (transfer full): A new #GstTask.
*
* MT safe.
*/
GstTask *
gst_task_new (GstTaskFunction func, gpointer user_data, GDestroyNotify
notify)
{
GstTask *task;
task = g_object_newv (GST_TYPE_TASK, 0, NULL);
task->func = func;
task->user_data = user_data;
task->notify = notify;
GST_DEBUG ("Created task %p", task);
return task;
}
Since GstTask derives from GstObject (and thus, GInitiallyUnowned), shouldn't
g_object_newv (GST_TYPE_TASK, ...) return a floating reference?
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list