summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 213963e)
raw | patch | inline | side by side (parent: 213963e)
author | Alessandro Decina <alessandro.decina@collabora.co.uk> | |
Wed, 11 Jan 2012 16:00:34 +0000 (17:00 +0100) | ||
committer | Alessandro Decina <alessandro.d@gmail.com> | |
Wed, 11 Jan 2012 16:16:34 +0000 (17:16 +0100) |
src/gstducatividdec.c | patch | blob | history | |
src/gstducatividdec.h | patch | blob | history |
diff --git a/src/gstducatividdec.c b/src/gstducatividdec.c
index 5a95c84beb2e841759fb40181815623ea7bd0da3..a25c52033afba3addc394fad1837f3eb5d760648 100644 (file)
--- a/src/gstducatividdec.c
+++ b/src/gstducatividdec.c
buf = GST_DUCATIVIDDEC_GET_CLASS (self)->push_input (self, buf);
if (ts != GST_CLOCK_TIME_NONE) {
- self->duration = GST_BUFFER_DURATION (outbuf);
self->dts_queue[self->dts_widx++ % NDTS] = ts;
/* if next buffer has earlier ts than previous, then the ts
* we are getting are definitely decode order (DTS):
self->last_dts = ts;
}
- if (self->in_size == 0) {
+ if (self->in_size == 0 && outbuf) {
GST_DEBUG_OBJECT (self, "no input, skipping process");
gst_buffer_unref (outbuf);
return GST_FLOW_OK;
diff --git a/src/gstducatividdec.h b/src/gstducatividdec.h
index d3d35c4af4c12ba65055c165aabc74254a14c3e8..3396e0d6928cf0a014126e192595bad460d679c3 100644 (file)
--- a/src/gstducatividdec.h
+++ b/src/gstducatividdec.h
*/
gboolean ts_may_be_pts;
- GstClockTime duration;
#define NDTS 32
GstClockTime dts_queue[NDTS];
gint dts_ridx, dts_widx;