Skip to content

Commit eff2b5d

Browse files
c_sridurkhusika
authored andcommitted
mm-video: vdec: initialize m_native_buffers_enabled flag appropriately
Initializing m_native_buffers_enabled flag in init_members() is causing session failures because init_members() will be called from free_buffer() during port reconfiguration and following use_output_buffer() fails. So remove initializing the flag from init_members() and initialize it in constructor. Change-Id: I75fc5517133a4afc80d7361793020b15e3f83a9a
1 parent 1b1badc commit eff2b5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm-video/vidc/vdec/src/omx_vdec.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10146,6 +10146,7 @@ omx_vdec::allocate_color_convert_buf::allocate_color_convert_buf()
1014610146
init_members();
1014710147
ColorFormat = OMX_COLOR_FormatMax;
1014810148
dest_format = YCbCr420P;
10149+
m_native_buffers_enabled = false;
1014910150
}
1015010151

1015110152
void omx_vdec::allocate_color_convert_buf::set_vdec_client(void *client)
@@ -10164,7 +10165,6 @@ void omx_vdec::allocate_color_convert_buf::init_members() {
1016410165
memset(op_buf_ion_info,0,sizeof(m_platform_entry_client));
1016510166
for (int i = 0; i < MAX_COUNT;i++)
1016610167
pmem_fd[i] = -1;
10167-
m_native_buffers_enabled = false;
1016810168
}
1016910169

1017010170
omx_vdec::allocate_color_convert_buf::~allocate_color_convert_buf() {

0 commit comments

Comments
 (0)