projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
759a350
)
jpegdec: add duration when extimating QoS time
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Thu, 24 Feb 2011 11:23:44 +0000
(12:23 +0100)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Mon, 28 Feb 2011 10:58:48 +0000
(11:58 +0100)
When we need to decide on the next QoS time, take into account the duration of
the buffers.
ext/jpeg/gstjpegdec.c
patch
|
blob
|
history
diff --git
a/ext/jpeg/gstjpegdec.c
b/ext/jpeg/gstjpegdec.c
index
71ae4b9
..
c2189cc
100644
(file)
--- a/
ext/jpeg/gstjpegdec.c
+++ b/
ext/jpeg/gstjpegdec.c
@@
-1061,7
+1061,7
@@
gst_jpeg_dec_update_qos (GstJpegDec * dec, gdouble proportion,
GST_OBJECT_LOCK (dec);
dec->proportion = proportion;
if (G_LIKELY (ts != GST_CLOCK_TIME_NONE)) {
- if (G_UNLIKELY (diff >
0
))
+ if (G_UNLIKELY (diff >
dec->qos_duration
))
dec->earliest_time = ts + 2 * diff + dec->qos_duration;
else
dec->earliest_time = ts + diff;