[buf_slot]: fix mpp_buf_slot_dequeue type error

git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@337 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
ChenHengming
2015-10-09 20:21:09 +00:00
parent 30edcf12e3
commit 3bd426e39b

View File

@@ -599,10 +599,10 @@ MPP_RET mpp_buf_slot_dequeue(MppBufSlots slots, RK_U32 *index, SlotQueueType typ
MppBufSlotsImpl *impl = (MppBufSlotsImpl *)slots;
Mutex::Autolock auto_lock(impl->lock);
if (list_empty(&impl->queue[QUEUE_DISPLAY]))
if (list_empty(&impl->queue[type]))
return MPP_NOK;
MppBufSlotEntry *slot = list_entry(impl->queue[QUEUE_DISPLAY].next, MppBufSlotEntry, list);
MppBufSlotEntry *slot = list_entry(impl->queue[type].next, MppBufSlotEntry, list);
if (slot->status.not_ready)
return MPP_NOK;