diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2012-06-20 11:59:09 +0200 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2012-06-20 11:59:09 +0200 |
commit | b2aa56f4e3965d2a7e0bf1beaf8916631392b52f (patch) | |
tree | 5e91ffff58df908bdf47d2740fa6979355975f90 /gst/gstpad.c | |
parent | 76e8b2ecdad9f5e09c2c9b32f0c679a8b6638431 (diff) | |
download | gstreamer-b2aa56f4e3965d2a7e0bf1beaf8916631392b52f.tar.gz |
task: add separate methods to add enter/leave callback
Remove the structure of callbacks and replace with separate methods to register
each callback. This is much more binding friendly.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=677898
Diffstat (limited to 'gst/gstpad.c')
-rw-r--r-- | gst/gstpad.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gst/gstpad.c b/gst/gstpad.c index 4d6124d8a4..aa0285f512 100644 --- a/gst/gstpad.c +++ b/gst/gstpad.c @@ -5070,11 +5070,6 @@ pad_leave_thread (GstTask * task, GThread * thread, gpointer user_data) thread, task); } -static GstTaskThreadCallbacks thr_callbacks = { - pad_enter_thread, - pad_leave_thread, -}; - /** * gst_pad_start_task: * @pad: the #GstPad to start the task of @@ -5106,7 +5101,8 @@ gst_pad_start_task (GstPad * pad, GstTaskFunction func, gpointer user_data, if (task == NULL) { task = gst_task_new (func, user_data, notify); gst_task_set_lock (task, GST_PAD_GET_STREAM_LOCK (pad)); - gst_task_set_thread_callbacks (task, &thr_callbacks, pad, NULL); + gst_task_set_enter_callback (task, pad_enter_thread, pad, NULL); + gst_task_set_leave_callback (task, pad_leave_thread, pad, NULL); GST_INFO_OBJECT (pad, "created task %p", task); GST_PAD_TASK (pad) = task; gst_object_ref (task); |