webrtc: Fix sctp task's return type.
authorDoug Nazar <nazard@nazar.ca>
Thu, 22 Apr 2021 20:09:40 +0000 (16:09 -0400)
committerDoug Nazar <nazard@nazar.ca>
Thu, 22 Apr 2021 20:14:41 +0000 (16:14 -0400)
GstWebRTCBinFunc expects a GstStructure* return type.

Fixes segfault on PowerPC.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2188>

ext/webrtc/sctptransport.c

index 169a494..79aaa89 100644 (file)
@@ -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