rtpsession: rename RTCP thread
authorNicolas Pernas Maradei <nicopernas@gmail.com>
Fri, 27 Mar 2020 18:24:03 +0000 (19:24 +0100)
committerMiguel Paris <mparisdiaz@gmail.com>
Tue, 31 Mar 2020 11:34:07 +0000 (13:34 +0200)
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

index 8ce9275..b419e13 100644 (file)
@@ -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;
   }