mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 19:42:26 +00:00
rtpsession: Remove unused rtp_session_create_source
This commit is contained in:
parent
e8583cebe7
commit
0aff8a7d30
2 changed files with 0 additions and 29 deletions
|
@ -1984,34 +1984,6 @@ rtp_session_create_new_ssrc (RTPSession * sess)
|
||||||
return ssrc;
|
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
|
static gboolean
|
||||||
update_packet (GstBuffer ** buffer, guint idx, RTPPacketInfo * pinfo)
|
update_packet (GstBuffer ** buffer, guint idx, RTPPacketInfo * pinfo)
|
||||||
{
|
{
|
||||||
|
|
|
@ -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_sources (RTPSession *sess);
|
||||||
guint rtp_session_get_num_active_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_get_source_by_ssrc (RTPSession *sess, guint32 ssrc);
|
||||||
RTPSource* rtp_session_create_source (RTPSession *sess);
|
|
||||||
|
|
||||||
/* processing packets from receivers */
|
/* processing packets from receivers */
|
||||||
GstFlowReturn rtp_session_process_rtp (RTPSession *sess, GstBuffer *buffer,
|
GstFlowReturn rtp_session_process_rtp (RTPSession *sess, GstBuffer *buffer,
|
||||||
|
|
Loading…
Reference in a new issue