libs/gst/base/gstbasesink.c: Add applied_rate to the debug

Original commit message from CVS:
* libs/gst/base/gstbasesink.c: (gst_base_sink_configure_segment):
Add applied_rate to the debug
* libs/gst/base/gstbasesrc.c: (gst_base_src_perform_seek):
Copy applied_rate into the outgoing NEWSEGMENT event
This commit is contained in:
Jan Schmidt 2006-05-08 14:55:26 +00:00
parent 246712327d
commit 9d3f628b81
3 changed files with 18 additions and 8 deletions

View file

@ -1,3 +1,11 @@
2006-05-08 Jan Schmidt <thaytan@mad.scientist.com>
* libs/gst/base/gstbasesink.c: (gst_base_sink_configure_segment):
Add applied_rate to the debug
* libs/gst/base/gstbasesrc.c: (gst_base_src_perform_seek):
Copy applied_rate into the outgoing NEWSEGMENT event
2006-05-08 Wim Taymans <wim@fluendo.com>
Patch by: Philippe Rouquier <philippero at libertysurf dot fr>

View file

@ -721,17 +721,19 @@ gst_base_sink_configure_segment (GstBaseSink * basesink, GstPad * pad,
if (format == GST_FORMAT_TIME) {
GST_DEBUG_OBJECT (basesink,
"configured NEWSEGMENT update %d, rate %lf, format GST_FORMAT_TIME, "
"configured NEWSEGMENT update %d, rate %lf, applied rate %lf, "
"format GST_FORMAT_TIME, "
"%" GST_TIME_FORMAT " -- %" GST_TIME_FORMAT
", time %" GST_TIME_FORMAT ", accum %" GST_TIME_FORMAT,
update, rate, GST_TIME_ARGS (segment->start),
update, rate, arate, GST_TIME_ARGS (segment->start),
GST_TIME_ARGS (segment->stop), GST_TIME_ARGS (segment->time),
GST_TIME_ARGS (segment->accum));
} else {
GST_DEBUG_OBJECT (basesink,
"configured NEWSEGMENT update %d, rate %lf, format %d, "
"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,
G_GINT64_FORMAT ", accum %" G_GINT64_FORMAT, update, rate, arate,
segment->format, segment->start, segment->stop, segment->time,
segment->accum);
}

View file

@ -842,8 +842,8 @@ gst_base_src_perform_seek (GstBaseSrc * src, GstEvent * event, gboolean unlock)
" to %" G_GINT64_FORMAT, src->segment.start, src->segment.last_stop);
gst_pad_push_event (src->srcpad,
gst_event_new_new_segment (TRUE,
src->segment.rate, src->segment.format,
gst_event_new_new_segment_full (TRUE,
src->segment.rate, src->segment.applied_rate, src->segment.format,
src->segment.start, src->segment.last_stop, src->segment.time));
}
@ -866,8 +866,8 @@ gst_base_src_perform_seek (GstBaseSrc * src, GstEvent * event, gboolean unlock)
" to %" G_GINT64_FORMAT, src->segment.start, stop);
gst_pad_push_event (src->srcpad,
gst_event_new_new_segment (FALSE,
src->segment.rate, src->segment.format,
gst_event_new_new_segment_full (FALSE,
src->segment.rate, src->segment.applied_rate, src->segment.format,
src->segment.last_stop, stop, src->segment.time));
}