Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LimaGroup
Lima
Commits
4df392e9
Commit
4df392e9
authored
Oct 08, 2020
by
Samuel Debionne
Browse files
Fix HwBufferMgr when nb of available buffers decreases (e.g. to_alloc is negative)
parent
9314af23
Pipeline
#34937
passed with stages
in 29 minutes
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
hardware/src/HwBufferMgr.cpp
View file @
4df392e9
...
...
@@ -113,8 +113,8 @@ void SoftBufferAllocMgr::allocBuffers(int nb_buffers,
try
{
BufferList
&
bl
=
m_buffer_list
;
if
(
to_alloc
>
0
)
{
bl
.
resize
(
nb_buffers
,
MemBuffer
(
m_allocator
));
bl
.
resize
(
nb_buffers
,
MemBuffer
(
m_allocator
));
if
(
to_alloc
>
0
)
{
DEB_TRACE
()
<<
"Allocating "
<<
to_alloc
<<
" buffers"
;
for
(
int
i
=
curr_nb_buffers
;
i
<
nb_buffers
;
i
++
)
bl
[
i
].
alloc
(
frame_size
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment