From 4e29ba9fceefe98d47e9f9a76ca993ff7b323111 Mon Sep 17 00:00:00 2001 From: Doug Nazar Date: Thu, 22 Apr 2021 16:09:40 -0400 Subject: [PATCH] webrtc: Fix sctp task's return type. GstWebRTCBinFunc expects a GstStructure* return type. Fixes segfault on PowerPC. Part-of: --- ext/webrtc/sctptransport.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/webrtc/sctptransport.c b/ext/webrtc/sctptransport.c index 169a49439c..79aaa89f4d 100644 --- a/ext/webrtc/sctptransport.c +++ b/ext/webrtc/sctptransport.c @@ -62,11 +62,12 @@ struct task GDestroyNotify notify; }; -static void +static GstStructure * _execute_task (GstWebRTCBin * webrtc, struct task *task) { if (task->func) task->func (task->sctp, task->user_data); + return NULL; } static void