mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
rtpsession: only delay RTCP when we are a sender
Only delay the RTCP thread when we are a sender, which we can know because we have a send_rtp_src pad. Otherwise we might delay the RTCP thread if we are only a receiver and then there is no code path that wakes up the RTCP thread and we end up without RTCP packets.
This commit is contained in:
parent
e29ab42922
commit
a61055809f
1 changed files with 2 additions and 1 deletions
|
@ -978,7 +978,8 @@ gst_rtp_session_change_state (GstElement * element, GstStateChange transition)
|
|||
break;
|
||||
case GST_STATE_CHANGE_READY_TO_PAUSED:
|
||||
GST_RTP_SESSION_LOCK (rtpsession);
|
||||
rtpsession->priv->wait_send = TRUE;
|
||||
if (rtpsession->send_rtp_src)
|
||||
rtpsession->priv->wait_send = TRUE;
|
||||
GST_RTP_SESSION_UNLOCK (rtpsession);
|
||||
break;
|
||||
case GST_STATE_CHANGE_PAUSED_TO_PLAYING:
|
||||
|
|
Loading…
Reference in a new issue