From 0aff8a7d30d20ad9fd861fc71dbdf94ea4318a27 Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Thu, 9 Aug 2018 16:40:26 +0300 Subject: [PATCH] rtpsession: Remove unused rtp_session_create_source --- gst/rtpmanager/rtpsession.c | 28 ---------------------------- gst/rtpmanager/rtpsession.h | 1 - 2 files changed, 29 deletions(-) diff --git a/gst/rtpmanager/rtpsession.c b/gst/rtpmanager/rtpsession.c index 0708ab4e09..1754d690d0 100644 --- a/gst/rtpmanager/rtpsession.c +++ b/gst/rtpmanager/rtpsession.c @@ -1984,34 +1984,6 @@ rtp_session_create_new_ssrc (RTPSession * sess) return ssrc; } - -/** - * rtp_session_create_source: - * @sess: an #RTPSession - * - * Create an #RTPSource for use in @sess. This function will create a source - * with an ssrc that is currently not used by any participants in the session. - * - * Returns: an #RTPSource. - */ -RTPSource * -rtp_session_create_source (RTPSession * sess) -{ - guint32 ssrc; - RTPSource *source; - - RTP_SESSION_LOCK (sess); - ssrc = rtp_session_create_new_ssrc (sess); - source = rtp_source_new (ssrc); - rtp_source_set_callbacks (source, &callbacks, sess); - /* we need an additional ref for the source in the hashtable */ - g_object_ref (source); - add_source (sess, source); - RTP_SESSION_UNLOCK (sess); - - return source; -} - static gboolean update_packet (GstBuffer ** buffer, guint idx, RTPPacketInfo * pinfo) { diff --git a/gst/rtpmanager/rtpsession.h b/gst/rtpmanager/rtpsession.h index 04c9c04718..0c54895d7a 100644 --- a/gst/rtpmanager/rtpsession.h +++ b/gst/rtpmanager/rtpsession.h @@ -375,7 +375,6 @@ gboolean rtp_session_add_source (RTPSession *sess, RTPSource guint rtp_session_get_num_sources (RTPSession *sess); guint rtp_session_get_num_active_sources (RTPSession *sess); RTPSource* rtp_session_get_source_by_ssrc (RTPSession *sess, guint32 ssrc); -RTPSource* rtp_session_create_source (RTPSession *sess); /* processing packets from receivers */ GstFlowReturn rtp_session_process_rtp (RTPSession *sess, GstBuffer *buffer,