summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaheshwar Ajja <majja@codeaurora.org>2018-09-25 17:01:36 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2018-10-16 03:14:24 -0700
commit3917ac13a577a8416e4ecc678c39eaf93510590d (patch)
treee75d333f0c4a4c38cf98eec8178a42e903b627f4
parent5a8ea3ba6dfacf354e7f9c6f6456a37b98b87234 (diff)
downloadmedia-3917ac13a577a8416e4ecc678c39eaf93510590d.tar.gz
mm-video-v4l2: vdec: Typecast the value instead of address
m_etb/ftb_q.pop_entry() will save the buffer header pointer address in the value of the variable passed. Use the value of this variable and not the address to typecast. Change-Id: I53b78dc47486c0ce4e934dd579c9212f269859e9 Signed-off-by: shubham <shubgupt@codeaurora.org>
-rw-r--r--mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp b/mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp
index 3548d082..e3f88929 100644
--- a/mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp
+++ b/mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp
@@ -3206,7 +3206,7 @@ bool omx_vdec::execute_output_flush()
while (m_ftb_q.m_size) {
m_ftb_q.pop_entry(&p1,&p2,&ident);
if (ident == m_fill_output_msg ) {
- print_omx_buffer("Flush FBD", (OMX_BUFFERHEADERTYPE *)&p2);
+ print_omx_buffer("Flush FBD", (OMX_BUFFERHEADERTYPE *)p2);
m_cb.FillBufferDone(&m_cmp, m_app_data, (OMX_BUFFERHEADERTYPE *)(intptr_t)p2);
} else if (ident == OMX_COMPONENT_GENERATE_FBD) {
fill_buffer_done(&m_cmp,(OMX_BUFFERHEADERTYPE *)(intptr_t)p1);
@@ -3247,15 +3247,15 @@ bool omx_vdec::execute_input_flush()
m_etb_q.pop_entry(&p1,&p2,&ident);
if (ident == OMX_COMPONENT_GENERATE_ETB_ARBITRARY) {
- print_omx_buffer("Flush ETB_ARBITRARY", (OMX_BUFFERHEADERTYPE *)&p2);
+ print_omx_buffer("Flush ETB_ARBITRARY", (OMX_BUFFERHEADERTYPE *)p2);
m_cb.EmptyBufferDone(&m_cmp ,m_app_data, (OMX_BUFFERHEADERTYPE *)p2);
} else if (ident == OMX_COMPONENT_GENERATE_ETB) {
pending_input_buffers++;
VIDC_TRACE_INT_LOW("ETB-pending", pending_input_buffers);
- print_omx_buffer("Flush ETB", (OMX_BUFFERHEADERTYPE *)&p2);
+ print_omx_buffer("Flush ETB", (OMX_BUFFERHEADERTYPE *)p2);
empty_buffer_done(&m_cmp,(OMX_BUFFERHEADERTYPE *)p2);
} else if (ident == OMX_COMPONENT_GENERATE_EBD) {
- print_omx_buffer("Flush EBD", (OMX_BUFFERHEADERTYPE *)&p1);
+ print_omx_buffer("Flush EBD", (OMX_BUFFERHEADERTYPE *)p1);
empty_buffer_done(&m_cmp,(OMX_BUFFERHEADERTYPE *)p1);
}
}