From ce0fb9bd29d729119f7b8ebd882d431986bb9a90 Mon Sep 17 00:00:00 2001 From: Nicolas Pernas Maradei Date: Fri, 27 Mar 2020 19:24:03 +0100 Subject: [PATCH] rtpsession: rename RTCP thread RTP session starts a new thread for RTCP and names it "rtpsession-rtcp-thread" which happens to be longer than the maximum 16B allowed by pthread_setname_np and causes the naming to fail. See docs for more details. This commit simply shortens the thread's name so it can actually be set. --- gst/rtpmanager/gstrtpsession.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/rtpmanager/gstrtpsession.c b/gst/rtpmanager/gstrtpsession.c index 8ce9275fff..b419e1343a 100644 --- a/gst/rtpmanager/gstrtpsession.c +++ b/gst/rtpmanager/gstrtpsession.c @@ -1237,7 +1237,7 @@ start_rtcp_thread (GstRtpSession * rtpsession) g_thread_join (rtpsession->priv->thread); /* only create a new thread if the old one was stopped. Otherwise we can * just reuse the currently running one. */ - rtpsession->priv->thread = g_thread_try_new ("rtpsession-rtcp-thread", + rtpsession->priv->thread = g_thread_try_new ("rtpsession-rtcp", (GThreadFunc) rtcp_thread, rtpsession, &error); rtpsession->priv->thread_stopped = FALSE; }