projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad6d196
)
nle: Parent the GstTask to ourself
author
Thibault Saunier
<tsaunier@igalia.com>
Mon, 17 Jun 2019 22:23:07 +0000
(18:23 -0400)
committer
Thibault Saunier
<tsaunier@igalia.com>
Fri, 5 Jul 2019 22:01:07 +0000
(18:01 -0400)
This allows accessing the nlecomposition in gdb when a task is
'dangling' making debugging easier.
plugins/nle/nlecomposition.c
patch
|
blob
|
history
diff --git
a/plugins/nle/nlecomposition.c
b/plugins/nle/nlecomposition.c
index abd145eb17a91ac34decde1f9e7d1935c8bff92a..1aea0b5ef0689986949819c5215905f2c50b4dfc 100644
(file)
--- a/
plugins/nle/nlecomposition.c
+++ b/
plugins/nle/nlecomposition.c
@@
-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_un
ref (task
);
+ gst_object_un
parent (GST_OBJECT (task)
);
return res;