Loading media/codec2/hal/client/output.cpp +10 −7 Original line number Diff line number Diff line Loading @@ -141,11 +141,14 @@ status_t attachToBufferQueue(const C2ConstGraphicBlock& block, "status = " << INVALID_OPERATION << "."; return INVALID_OPERATION; } result = igbp->attachBuffer(bqSlot, graphicBuffer); if (result == OK) { syncVar->notifyDequeuedLocked(); } syncVar->unlock(); result = igbp->attachBuffer(bqSlot, graphicBuffer); if (result != OK) { syncVar->lock(); syncVar->notifyQueuedLocked(); syncVar->unlock(); } } else { result = igbp->attachBuffer(bqSlot, graphicBuffer); } Loading Loading @@ -435,13 +438,13 @@ status_t OutputBufferQueue::outputBuffer( auto syncVar = syncMem ? syncMem->mem() : nullptr; if(syncVar) { syncVar->lock(); status = outputIgbp->queueBuffer(static_cast<int>(bqSlot), input, output); if (status == OK) { syncVar->lock(); syncVar->notifyQueuedLocked(); } syncVar->unlock(); } } else { status = outputIgbp->queueBuffer(static_cast<int>(bqSlot), input, output); Loading Loading @@ -490,13 +493,13 @@ status_t OutputBufferQueue::outputBuffer( auto syncVar = syncMem ? syncMem->mem() : nullptr; status_t status = OK; if (syncVar) { syncVar->lock(); status = outputIgbp->queueBuffer(static_cast<int>(bqSlot), input, output); if (status == OK) { syncVar->lock(); syncVar->notifyQueuedLocked(); } syncVar->unlock(); } } else { status = outputIgbp->queueBuffer(static_cast<int>(bqSlot), input, output); Loading Loading
media/codec2/hal/client/output.cpp +10 −7 Original line number Diff line number Diff line Loading @@ -141,11 +141,14 @@ status_t attachToBufferQueue(const C2ConstGraphicBlock& block, "status = " << INVALID_OPERATION << "."; return INVALID_OPERATION; } result = igbp->attachBuffer(bqSlot, graphicBuffer); if (result == OK) { syncVar->notifyDequeuedLocked(); } syncVar->unlock(); result = igbp->attachBuffer(bqSlot, graphicBuffer); if (result != OK) { syncVar->lock(); syncVar->notifyQueuedLocked(); syncVar->unlock(); } } else { result = igbp->attachBuffer(bqSlot, graphicBuffer); } Loading Loading @@ -435,13 +438,13 @@ status_t OutputBufferQueue::outputBuffer( auto syncVar = syncMem ? syncMem->mem() : nullptr; if(syncVar) { syncVar->lock(); status = outputIgbp->queueBuffer(static_cast<int>(bqSlot), input, output); if (status == OK) { syncVar->lock(); syncVar->notifyQueuedLocked(); } syncVar->unlock(); } } else { status = outputIgbp->queueBuffer(static_cast<int>(bqSlot), input, output); Loading Loading @@ -490,13 +493,13 @@ status_t OutputBufferQueue::outputBuffer( auto syncVar = syncMem ? syncMem->mem() : nullptr; status_t status = OK; if (syncVar) { syncVar->lock(); status = outputIgbp->queueBuffer(static_cast<int>(bqSlot), input, output); if (status == OK) { syncVar->lock(); syncVar->notifyQueuedLocked(); } syncVar->unlock(); } } else { status = outputIgbp->queueBuffer(static_cast<int>(bqSlot), input, output); Loading