mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
nle: Parent the GstTask to ourself
This allows accessing the nlecomposition in gdb when a task is 'dangling' making debugging easier.
This commit is contained in:
parent
ad6d1964af
commit
351182ba2a
1 changed files with 3 additions and 1 deletions
|
@ -444,6 +444,8 @@ _start_task (NleComposition * comp)
|
|||
gst_task_set_lock (task, GET_TASK_LOCK (comp));
|
||||
GST_DEBUG_OBJECT (comp, "created task %p", task);
|
||||
comp->task = task;
|
||||
gst_object_set_parent (GST_OBJECT (task), GST_OBJECT (comp));
|
||||
gst_object_unref (task);
|
||||
g_free (taskname);
|
||||
}
|
||||
|
||||
|
@ -479,7 +481,7 @@ _stop_task (NleComposition * comp)
|
|||
if (!gst_task_join (task))
|
||||
goto join_failed;
|
||||
|
||||
gst_object_unref (task);
|
||||
gst_object_unparent (GST_OBJECT (task));
|
||||
|
||||
return res;
|
||||
|
||||
|
|
Loading…
Reference in a new issue