Commit bc633345 authored by Wim Taymans's avatar Wim Taymans
Browse files

rtppayload: copy applied rate to segment

Use set_segment_full to copy all segment values to the segment structure.
parent 949595a7
......@@ -402,15 +402,25 @@ gst_basertppayload_event (GstPad * pad, GstEvent * event)
gboolean update;
gdouble rate;
gdouble rate, arate;
GstFormat fmt;
gint64 start, stop, position;
gst_event_parse_new_segment (event, &update, &rate, &fmt, &start, &stop,
gst_segment_set_newsegment (&basertppayload->segment, update, rate, fmt,
start, stop, position);
GstSegment *segment;
segment = &basertppayload->segment;
gst_event_parse_new_segment_full (event, &update, &rate, &arate, &fmt,
&start, &stop, &position);
gst_segment_set_newsegment_full (segment, update, rate, arate, fmt, start,
stop, position);
GST_DEBUG_OBJECT (basertppayload,
"configured NEWSEGMENT update %d, rate %lf, applied rate %lf, "
"format %d, "
"%" G_GINT64_FORMAT " -- %" G_GINT64_FORMAT ", time %"
G_GINT64_FORMAT ", accum %" G_GINT64_FORMAT, update, rate, arate,
segment->format, segment->start, segment->stop, segment->time,
/* fallthrough */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment