omx: Reset nOffset to 0 in EmptyBufferDone if nFilledLen is 0
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 14 Oct 2011 08:26:00 +0000 (10:26 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 14 Oct 2011 08:26:21 +0000 (10:26 +0200)
commit2750a8869b90e517ee7a1a522d4fc37d171f339a
tree4cc84ee1e78406463db759f08478cf4d68bb4bc0
parentac8085dce9a9ba72c2681dfbde7d09b99b4d3d05
omx: Reset nOffset to 0 in EmptyBufferDone if nFilledLen is 0

Some OMX implementations don't reset nOffset when the complete
buffer is emptied but instead only reset nFilledLen. We reset
nOffset to 0 if nFilledLen == 0, which is safe to do because
the offset *must* be 0 if the buffer is not filled at all.

Seen in QCOM's OMX implementation.
omx/gstomx.c