summaryrefslogtreecommitdiff
path: root/gst/rtpmanager/rtpsource.h
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2010-01-20 17:04:03 +0100
committerWim Taymans <wim@metal.(none)>2010-02-15 21:36:29 +0100
commit83cb1aecc8218dabc2a7a99a916c73a97037db74 (patch)
tree39671977940afe5ac52c4dbeba51791ea325051b /gst/rtpmanager/rtpsource.h
parent2baa107562dec16531ccdf5e07c8910437b6bfd8 (diff)
rtpbin: change how NTP time is calculated in RTCP
Don't calculate the NTP time based on the running_time of the pipeline but from the systemclock. This allows us to generate more accurate NTP timestamps in case the systemclock is synchronized with NTP or similar.
Diffstat (limited to 'gst/rtpmanager/rtpsource.h')
-rw-r--r--gst/rtpmanager/rtpsource.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/gst/rtpmanager/rtpsource.h b/gst/rtpmanager/rtpsource.h
index b0c9bd0c4..6d43a0255 100644
--- a/gst/rtpmanager/rtpsource.h
+++ b/gst/rtpmanager/rtpsource.h
@@ -136,12 +136,12 @@ struct _RTPSource {
GstClockTime last_activity;
GstClockTime last_rtp_activity;
+ GstClockTime last_rtime;
GstClockTime last_rtptime;
- GstClockTime last_ntpnstime;
/* for bitrate estimation */
guint64 bitrate;
- GstClockTime prev_ntpnstime;
+ GstClockTime prev_rtime;
guint64 bytes_sent;
GQueue *packets;
@@ -192,8 +192,8 @@ void rtp_source_set_rtcp_from (RTPSource *src, GstNetAddress *a
/* handling RTP */
GstFlowReturn rtp_source_process_rtp (RTPSource *src, GstBuffer *buffer, RTPArrivalStats *arrival);
-GstFlowReturn rtp_source_send_rtp (RTPSource *src, gpointer data, gboolean is_list, guint64 ntpnstime);
-
+GstFlowReturn rtp_source_send_rtp (RTPSource *src, gpointer data, gboolean is_list,
+ GstClockTime running_time);
/* RTCP messages */
void rtp_source_process_bye (RTPSource *src, const gchar *reason);
void rtp_source_process_sr (RTPSource *src, GstClockTime time, guint64 ntptime,
@@ -202,8 +202,8 @@ void rtp_source_process_rb (RTPSource *src, GstClockTime tim
gint32 packetslost, guint32 exthighestseq, guint32 jitter,
guint32 lsr, guint32 dlsr);
-gboolean rtp_source_get_new_sr (RTPSource *src, guint64 ntpnstime, guint64 *ntptime,
- guint32 *rtptime, guint32 *packet_count,
+gboolean rtp_source_get_new_sr (RTPSource *src, guint64 ntpnstime, GstClockTime running_time,
+ guint64 *ntptime, guint32 *rtptime, guint32 *packet_count,
guint32 *octet_count);
gboolean rtp_source_get_new_rb (RTPSource *src, GstClockTime time, guint8 *fractionlost,
gint32 *packetslost, guint32 *exthighestseq, guint32 *jitter,