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:
c2e1565
)
task: guard against NULL task function
author
Prashant Gotarne
<ps.gotarne@samsung.com>
Thu, 19 Mar 2015 10:25:14 +0000
(15:55 +0530)
committer
Tim-Philipp Müller
<tim@centricular.com>
Thu, 25 Jun 2015 08:56:19 +0000
(09:56 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=746439
gst/gsttask.c
patch
|
blob
|
history
diff --git
a/gst/gsttask.c
b/gst/gsttask.c
index
d9e5697
..
6241bb8
100644
(file)
--- a/
gst/gsttask.c
+++ b/
gst/gsttask.c
@@
-414,6
+414,8
@@
gst_task_new (GstTaskFunction func, gpointer user_data, GDestroyNotify notify)
{
GstTask *task;
+ g_return_val_if_fail (func != NULL, NULL);
+
task = g_object_newv (GST_TYPE_TASK, 0, NULL);
task->func = func;
task->user_data = user_data;