[vpu_mem_legacy]: buffer group create

1.limit buffer count for create vpu_mem_pool case
2.remove limit buffer print in mpp_buffer_impl

Change-Id: I88daa0204d8858e882ac3255ef3a95e0853ae2f2
Signed-off-by: sayon.chen <sayon.chen@rock-chips.com>
This commit is contained in:
sayon.chen
2016-08-23 19:57:12 +08:00
parent 4f8f63d16f
commit f18f2f45a6
2 changed files with 10 additions and 4 deletions

View File

@@ -246,7 +246,8 @@ MPP_RET mpp_buffer_create(const char *tag, const char *caller,
}
if (group->limit_count && group->buffer_count >= group->limit_count) {
mpp_err_f("group %d reach count limit %d\n", group->group_id, group->limit_count);
if (group->log_runtime_en)
mpp_log_f("group %d reach count limit %d\n", group->group_id, group->limit_count);
ret = MPP_NOK;
goto RET;
}