webrtc: Fix sctp task's return type.

GstWebRTCBinFunc expects a GstStructure* return type.

Fixes segfault on PowerPC.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2188>
This commit is contained in:
Doug Nazar 2021-04-22 16:09:40 -04:00
parent 08b792d24c
commit 4e29ba9fce

View File

@ -62,11 +62,12 @@ struct task
GDestroyNotify notify; GDestroyNotify notify;
}; };
static void static GstStructure *
_execute_task (GstWebRTCBin * webrtc, struct task *task) _execute_task (GstWebRTCBin * webrtc, struct task *task)
{ {
if (task->func) if (task->func)
task->func (task->sctp, task->user_data); task->func (task->sctp, task->user_data);
return NULL;
} }
static void static void