]> git.sesse.net Git - vlc/commit
iomx-dr: don't always lock buffers from dequeue
authorThomas Guillem <guillem@archos.com>
Fri, 25 Jul 2014 14:50:54 +0000 (16:50 +0200)
committerMartin Storsjö <martin@martin.st>
Sat, 26 Jul 2014 10:59:47 +0000 (13:59 +0300)
commitf9182874b2235acea94ef634552188edc80b2df8
treed3eab103cba1347e15a6e8f47c09f60ac3326400
parente69072b9d8a4f860dd9559132e04d0a66f1467d7
iomx-dr: don't always lock buffers from dequeue

According to OMXCodec.cpp, we shouldn't call lockBuffer when we first allocate
all buffers, since we may cancel some of them (the min_undequeued ones).

We should call lockBuffer only before giving a buffer to OMX.

Signed-off-by: Martin Storsjö <martin@martin.st>
modules/codec/omxil/iomx_hwbuffer.c
modules/codec/omxil/omxil.c
modules/codec/omxil/omxil_core.c
modules/codec/omxil/omxil_core.h