libs/gst/base/gstbasesink.c: Use last buffer timestamp in qos message.

Original commit message from CVS:
* libs/gst/base/gstbasesink.c: (gst_base_sink_do_sync):
Use last buffer timestamp in qos message.
This commit is contained in:
Wim Taymans 2006-03-08 09:46:54 +00:00
parent 2ee0cdf799
commit 06aa56aca4
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2006-03-08 Wim Taymans <wim@fluendo.com>
* libs/gst/base/gstbasesink.c: (gst_base_sink_do_sync):
Use last buffer timestamp in qos message.
2006-03-07 Wim Taymans <wim@fluendo.com>
* docs/pwg/advanced-tagging.xml:

View file

@ -930,7 +930,7 @@ again:
*late = FALSE;
/* FIXME, update clock stats here and do some QoS */
if (status == GST_CLOCK_EARLY) {
if (status == GST_CLOCK_EARLY && GST_IS_BUFFER (obj)) {
if (basesink->abidata.ABI.max_lateness != -1
&& jitter > basesink->abidata.ABI.max_lateness) {
GstEvent *event;
@ -940,7 +940,7 @@ again:
*late = TRUE;
/* generate QoS event, FIXME, calculate decent proportion. */
event = gst_event_new_qos (-1.0, jitter, start);
event = gst_event_new_qos (-1.0, jitter, GST_BUFFER_TIMESTAMP (obj));
/* send upstream */
gst_pad_push_event (basesink->sinkpad, event);