From 06aa56aca44849c861813637b31fb62f358c090e Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 8 Mar 2006 09:46:54 +0000 Subject: [PATCH] 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. --- ChangeLog | 5 +++++ libs/gst/base/gstbasesink.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index e4d62ae084..3dbde721c6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-03-08 Wim Taymans + + * libs/gst/base/gstbasesink.c: (gst_base_sink_do_sync): + Use last buffer timestamp in qos message. + 2006-03-07 Wim Taymans * docs/pwg/advanced-tagging.xml: diff --git a/libs/gst/base/gstbasesink.c b/libs/gst/base/gstbasesink.c index 8d1db0833b..d69eba0d0e 100644 --- a/libs/gst/base/gstbasesink.c +++ b/libs/gst/base/gstbasesink.c @@ -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);