[FIX] Defer buffer lock till calling process
authorPradeep Venkatasubbarao <pradeepv@ti.com>
Tue, 11 Mar 2014 12:45:41 +0000 (18:15 +0530)
committerPradeep Venkatasubbarao <pradeepv@ti.com>
Tue, 11 Mar 2014 12:45:41 +0000 (18:15 +0530)
commit4b10d62c2f80010edf020c07320696d1fd36cdec
tree78f50c89a07a737568073c2da887c7959ee3e45c
parentcc42ba943df2d88f6583d78c058b8431534d59f7
[FIX] Defer buffer lock till calling process

Fix for issue OMAPS00301600.

The output buffers need to be locked (pinned to tiler) before calling
VIDDEC3_process.

Earlier this call, dce_buf_lock, was getting called much earlier.
So, in case of an error scenario, the buffers were not being unlocked
as dce_buf_unlock was not getting called.

This patch fixes the issue by defering the locking call till
before calling VIDDEC3_process.

Signed-off-by: Pradeep Venkatasubbarao <pradeepv@ti.com>
src/gstducatividdec.c