rtpsession: remember last sent RB values.

This commit is contained in:
Wim Taymans 2010-12-23 13:52:57 +01:00
parent 6035ee08c0
commit 8fa5ddab9a
2 changed files with 10 additions and 0 deletions

View file

@ -2357,6 +2357,15 @@ session_report_blocks (const gchar * key, RTPSource * source, ReportData * data)
rtp_source_get_new_rb (source, data->current_time, &fractionlost,
&packetslost, &exthighestseq, &jitter, &lsr, &dlsr);
/* store last generated RR packet */
source->last_rr.is_valid = TRUE;
source->last_rr.fractionlost = fractionlost;
source->last_rr.packetslost = packetslost;
source->last_rr.exthighestseq = exthighestseq;
source->last_rr.jitter = jitter;
source->last_rr.lsr = lsr;
source->last_rr.dlsr = dlsr;
/* packet is not yet filled, add report block for this source. */
gst_rtcp_packet_add_rb (packet, source->ssrc, fractionlost, packetslost,
exthighestseq, jitter, lsr, dlsr);

View file

@ -167,6 +167,7 @@ struct _RTPSource {
gpointer user_data;
RTPSourceStats stats;
RTPReceiverReport last_rr;
GList *conflicting_addresses;
};