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.
This commit is contained in:
Nicolas Pernas Maradei 2020-03-27 19:24:03 +01:00 committed by Miguel Paris
parent 3368ed44a3
commit ce0fb9bd29

View file

@ -1237,7 +1237,7 @@ start_rtcp_thread (GstRtpSession * rtpsession)
g_thread_join (rtpsession->priv->thread); g_thread_join (rtpsession->priv->thread);
/* only create a new thread if the old one was stopped. Otherwise we can /* only create a new thread if the old one was stopped. Otherwise we can
* just reuse the currently running one. */ * 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); (GThreadFunc) rtcp_thread, rtpsession, &error);
rtpsession->priv->thread_stopped = FALSE; rtpsession->priv->thread_stopped = FALSE;
} }