mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-05 17:16:50 +08:00
[buf_slot]: Fix slip of pen
mpp_slots_get_unused_count should use buffer count rather than buf_size as the minuend. Change-Id: I975e186c826edfbadf6115cdf375826d03a5adc9 Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
@@ -993,7 +993,7 @@ RK_S32 mpp_slots_get_unused_count(MppBufSlots slots)
|
||||
MppBufSlotsImpl *impl = (MppBufSlotsImpl *)slots;
|
||||
AutoMutex auto_lock(impl->lock);
|
||||
slot_assert(impl, (impl->used_count >= 0) && (impl->used_count <= impl->buf_count));
|
||||
return impl->buf_size - impl->used_count;
|
||||
return impl->buf_count - impl->used_count;
|
||||
}
|
||||
|
||||
MPP_RET mpp_slots_set_prop(MppBufSlots slots, SlotsPropType type, void *val)
|
||||
|
Reference in New Issue
Block a user