summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAshray Kulkarni <ashrayk@codeaurora.org>2015-06-19 17:40:07 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2015-12-02 04:24:33 -0800
commitaecbc7a0f402fac234361e8170d4f1b4e5da3fb1 (patch)
treee56336b927532018bc8d3ee1a958cd582100760b
parent2b51116668a7059ae0217bed732f24d540581541 (diff)
downloadandroid_hardware_qcom_media-aecbc7a0f402fac234361e8170d4f1b4e5da3fb1.tar.gz
android_hardware_qcom_media-aecbc7a0f402fac234361e8170d4f1b4e5da3fb1.tar.bz2
android_hardware_qcom_media-aecbc7a0f402fac234361e8170d4f1b4e5da3fb1.zip
mm-video-v4l2: handle flush done as buffer_done and not as cmd_done
when port_reconfig and flush event happen flush has higher priority and is handled earlier than port_reconfig command. After flush handling buffer done commands become irrelevant. This change makes both flush done and port_reconfig events of same priorities thereby resulting in sending all events to clients in the order returned by firmware. Change-Id: If0bbe6aa5642718c63a3155310e6444073283621
-rw-r--r--mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp b/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp
index b7fb7327..ab33bf55 100644
--- a/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp
+++ b/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp
@@ -2816,11 +2816,13 @@ bool omx_vdec::post_event(unsigned long p1,
if (id == m_fill_output_msg ||
id == OMX_COMPONENT_GENERATE_FBD ||
- id == OMX_COMPONENT_GENERATE_PORT_RECONFIG) {
+ id == OMX_COMPONENT_GENERATE_PORT_RECONFIG ||
+ id == OMX_COMPONENT_GENERATE_EVENT_OUTPUT_FLUSH) {
m_ftb_q.insert_entry(p1,p2,id);
} else if (id == OMX_COMPONENT_GENERATE_ETB ||
id == OMX_COMPONENT_GENERATE_EBD ||
- id == OMX_COMPONENT_GENERATE_ETB_ARBITRARY) {
+ id == OMX_COMPONENT_GENERATE_ETB_ARBITRARY ||
+ id == OMX_COMPONENT_GENERATE_EVENT_INPUT_FLUSH) {
m_etb_q.insert_entry(p1,p2,id);
} else {
m_cmd_q.insert_entry(p1,p2,id);