summaryrefslogtreecommitdiffstats
path: root/gst/rtpmanager/rtpsession.c
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2007-04-25 16:38:03 +0000
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2009-08-11 02:30:26 +0100
commit43f0b878c9acd2314bf9a9f260e15ef77169e778 (patch)
tree653c15df9bf19f8cc58885285b5684b3c50f5291 /gst/rtpmanager/rtpsession.c
parent333764307d21eb430790c848a40f30521c34ffab (diff)
gst/rtpmanager/gstrtpsession.c: Implement forward and reverse reconsideration.
Original commit message from CVS: * gst/rtpmanager/gstrtpsession.c: (rtcp_thread): Implement forward and reverse reconsideration. * gst/rtpmanager/rtpsession.c: (rtp_session_get_num_sources), (rtp_session_get_num_active_sources), (rtp_session_process_sr), (session_report_blocks): * gst/rtpmanager/rtpsession.h: Small cleanups.
Diffstat (limited to 'gst/rtpmanager/rtpsession.c')
-rw-r--r--gst/rtpmanager/rtpsession.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gst/rtpmanager/rtpsession.c b/gst/rtpmanager/rtpsession.c
index 27d6dabb..1f6e1ebc 100644
--- a/gst/rtpmanager/rtpsession.c
+++ b/gst/rtpmanager/rtpsession.c
@@ -703,10 +703,10 @@ rtp_session_add_source (RTPSession * sess, RTPSource * src)
*
* Returns: The number of sources in @sess.
*/
-gint
+guint
rtp_session_get_num_sources (RTPSession * sess)
{
- gint result;
+ guint result;
g_return_val_if_fail (RTP_IS_SESSION (sess), FALSE);
@@ -726,12 +726,12 @@ rtp_session_get_num_sources (RTPSession * sess)
*
* Returns: The number of active sources in @sess.
*/
-gint
+guint
rtp_session_get_num_active_sources (RTPSession * sess)
{
- gint result;
+ guint result;
- g_return_val_if_fail (RTP_IS_SESSION (sess), FALSE);
+ g_return_val_if_fail (RTP_IS_SESSION (sess), 0);
RTP_SESSION_LOCK (sess);
result = sess->stats.active_sources;