mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 15:08:53 +00:00
task: guard against NULL task function
https://bugzilla.gnome.org/show_bug.cgi?id=746439
This commit is contained in:
parent
c2e15651be
commit
03dccde1ef
1 changed files with 2 additions and 0 deletions
|
@ -414,6 +414,8 @@ gst_task_new (GstTaskFunction func, gpointer user_data, GDestroyNotify notify)
|
||||||
{
|
{
|
||||||
GstTask *task;
|
GstTask *task;
|
||||||
|
|
||||||
|
g_return_val_if_fail (func != NULL, NULL);
|
||||||
|
|
||||||
task = g_object_newv (GST_TYPE_TASK, 0, NULL);
|
task = g_object_newv (GST_TYPE_TASK, 0, NULL);
|
||||||
task->func = func;
|
task->func = func;
|
||||||
task->user_data = user_data;
|
task->user_data = user_data;
|
||||||
|
|
Loading…
Reference in a new issue