mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
rtpmanager: A little clean up
Make the code flow of gst_rtp_session_send_rtcp() and gst_rtp_session_sync_rtcp() identical.
This commit is contained in:
parent
923b5b495a
commit
57adc2a803
1 changed files with 4 additions and 3 deletions
|
@ -1036,11 +1036,11 @@ gst_rtp_session_send_rtcp (RTPSession * sess, RTPSource * src,
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
gst_buffer_set_caps (buffer, caps);
|
gst_buffer_set_caps (buffer, caps);
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
GST_LOG_OBJECT (rtpsession, "sending RTCP");
|
|
||||||
|
|
||||||
gst_object_ref (rtcp_src);
|
gst_object_ref (rtcp_src);
|
||||||
GST_RTP_SESSION_UNLOCK (rtpsession);
|
GST_RTP_SESSION_UNLOCK (rtpsession);
|
||||||
|
|
||||||
|
GST_LOG_OBJECT (rtpsession, "sending RTCP");
|
||||||
result = gst_pad_push (rtcp_src, buffer);
|
result = gst_pad_push (rtcp_src, buffer);
|
||||||
|
|
||||||
/* we have to send EOS after this packet */
|
/* we have to send EOS after this packet */
|
||||||
|
@ -1071,8 +1071,8 @@ stopping:
|
||||||
/* called when the session manager has an SR RTCP packet ready for handling
|
/* called when the session manager has an SR RTCP packet ready for handling
|
||||||
* inter stream synchronisation */
|
* inter stream synchronisation */
|
||||||
static GstFlowReturn
|
static GstFlowReturn
|
||||||
gst_rtp_session_sync_rtcp (RTPSession * sess,
|
gst_rtp_session_sync_rtcp (RTPSession * sess, RTPSource * src,
|
||||||
RTPSource * src, GstBuffer * buffer, gpointer user_data)
|
GstBuffer * buffer, gpointer user_data)
|
||||||
{
|
{
|
||||||
GstFlowReturn result;
|
GstFlowReturn result;
|
||||||
GstRtpSession *rtpsession;
|
GstRtpSession *rtpsession;
|
||||||
|
@ -1097,6 +1097,7 @@ gst_rtp_session_sync_rtcp (RTPSession * sess,
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
gst_buffer_set_caps (buffer, caps);
|
gst_buffer_set_caps (buffer, caps);
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
|
|
||||||
gst_object_ref (sync_src);
|
gst_object_ref (sync_src);
|
||||||
GST_RTP_SESSION_UNLOCK (rtpsession);
|
GST_RTP_SESSION_UNLOCK (rtpsession);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue