summaryrefslogtreecommitdiff
path: root/omx/gstomx.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2017-10-09 13:12:35 +0200
committerNicolas Dufresne <nicolas.dufresne@collabora.com>2017-10-11 13:51:55 -0400
commitb3173144b7c1b12c9e1b7571f78659be45d813f6 (patch)
treefa594bbfa69786369755cf5c00f5fd575612283e /omx/gstomx.c
parent514699594d7a068af4f5dc9ed3a8e89bde9f97aa (diff)
downloadgst-omx-b3173144b7c1b12c9e1b7571f78659be45d813f6.tar.gz
omx: also reset nTimeStamp when re-using buffers
Some OMX implementations may check if the timestamp of the output buffers they receive is actually not set. https://bugzilla.gnome.org/show_bug.cgi?id=788711
Diffstat (limited to 'omx/gstomx.c')
-rw-r--r--omx/gstomx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/omx/gstomx.c b/omx/gstomx.c
index fb147ee..6a173de 100644
--- a/omx/gstomx.c
+++ b/omx/gstomx.c
@@ -231,6 +231,7 @@ gst_omx_buffer_reset (GstOMXBuffer * buf)
buf->omx_buf->nFlags = 0;
buf->omx_buf->nOffset = 0;
buf->omx_buf->nFilledLen = 0;
+ buf->omx_buf->nTimeStamp = 0;
}
/* NOTE: Call with comp->lock, comp->messages_lock will be used */