mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
session: also push EOS event to RTCP srcpad
This commit is contained in:
parent
03e4a180da
commit
679b5a8682
1 changed files with 21 additions and 0 deletions
|
@ -1496,6 +1496,27 @@ gst_rtp_session_event_recv_rtp_sink (GstPad * pad, GstObject * parent,
|
|||
ret = gst_pad_push_event (rtpsession->recv_rtp_src, event);
|
||||
break;
|
||||
}
|
||||
case GST_EVENT_EOS:
|
||||
{
|
||||
GstPad *rtcp_src;
|
||||
|
||||
ret =
|
||||
gst_pad_push_event (rtpsession->recv_rtp_src, gst_event_ref (event));
|
||||
|
||||
GST_RTP_SESSION_LOCK (rtpsession);
|
||||
if ((rtcp_src = rtpsession->send_rtcp_src))
|
||||
gst_object_ref (rtcp_src);
|
||||
GST_RTP_SESSION_UNLOCK (rtpsession);
|
||||
|
||||
if (rtcp_src) {
|
||||
ret = gst_pad_push_event (rtcp_src, event);
|
||||
gst_object_unref (rtcp_src);
|
||||
} else {
|
||||
gst_event_unref (event);
|
||||
ret = TRUE;
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
ret = gst_pad_push_event (rtpsession->recv_rtp_src, event);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue