session: Don't use ClockTimeDiff for unsigned delays

This commit is contained in:
Wim Taymans 2013-08-04 23:12:50 +02:00
parent 4f4f6432cc
commit 3c14c6021c
2 changed files with 6 additions and 7 deletions

View file

@ -111,8 +111,7 @@ static void rtp_session_set_property (GObject * object, guint prop_id,
static void rtp_session_get_property (GObject * object, guint prop_id,
GValue * value, GParamSpec * pspec);
static void rtp_session_send_rtcp (RTPSession * sess,
GstClockTimeDiff max_delay);
static void rtp_session_send_rtcp (RTPSession * sess, GstClockTime max_delay);
static guint rtp_session_signals[LAST_SIGNAL] = { 0 };
@ -3190,7 +3189,7 @@ early:
/* Apply the rules from RFC 4585 section 3.5.3 */
if (sess->stats.min_interval != 0 && !sess->first_rtcp) {
GstClockTimeDiff T_rr_current_interval =
GstClockTime T_rr_current_interval =
g_random_double_range (0.5, 1.5) * sess->stats.min_interval;
/* This will caused the RTCP to be suppressed if no FB packets are added */
@ -3413,7 +3412,7 @@ done:
*/
void
rtp_session_request_early_rtcp (RTPSession * sess, GstClockTime current_time,
GstClockTimeDiff max_delay)
GstClockTime max_delay)
{
GstClockTime T_dither_max;
@ -3505,7 +3504,7 @@ rtp_session_request_key_unit (RTPSession * sess, guint32 ssrc, GstClockTime now,
}
static void
rtp_session_send_rtcp (RTPSession * sess, GstClockTimeDiff max_delay)
rtp_session_send_rtcp (RTPSession * sess, GstClockTime max_delay)
{
GstClockTime now;

View file

@ -265,7 +265,7 @@ struct _RTPSessionClass {
gboolean early);
void (*on_feedback_rtcp) (RTPSession *sess, guint type, guint fbtype,
guint sender_ssrc, guint media_ssrc, GstBuffer *fci);
void (*send_rtcp) (RTPSession *sess, GstClockTimeDiff max_delay);
void (*send_rtcp) (RTPSession *sess, GstClockTime max_delay);
};
GType rtp_session_get_type (void);
@ -338,7 +338,7 @@ GstFlowReturn rtp_session_on_timeout (RTPSession *sess, GstClockTi
/* request the transmittion of an early RTCP packet */
void rtp_session_request_early_rtcp (RTPSession * sess, GstClockTime current_time,
GstClockTimeDiff max_delay);
GstClockTime max_delay);
/* Notify session of a request for a new key unit */
gboolean rtp_session_request_key_unit (RTPSession * sess,