Merge "Camera: Disable PP postpone in modes other than longshot."
diff --git a/QCamera2/HAL/QCameraPostProc.cpp b/QCamera2/HAL/QCameraPostProc.cpp
index dcc0c30..7601a2f 100644
--- a/QCamera2/HAL/QCameraPostProc.cpp
+++ b/QCamera2/HAL/QCameraPostProc.cpp
@@ -2308,10 +2308,16 @@
 
                     mm_camera_super_buf_t *pp_frame = NULL;
                     if (pme->m_inputPPQ.getCurrentSize() > 0) {
-                        if (pme->m_ongoingPPQ.getCurrentSize() <
-                                pme->m_reprocStream->getNumQueuedBuf()) {
+                        if (!pme->m_parent->isLongshotEnabled() ||
+                                (pme->m_ongoingPPQ.getCurrentSize() <
+                                pme->m_reprocStream->getNumQueuedBuf())) {
                             pp_frame = (mm_camera_super_buf_t *)pme->m_inputPPQ.dequeue();
                         }
+                        else {
+                            CDBG_HIGH("Postpone reprocess.On going reproc=%d,Queued reproc buf=%d",
+                                    pme->m_ongoingPPQ.getCurrentSize(),
+                                    pme->m_reprocStream->getNumQueuedBuf());
+                        }
                     }
                     if (NULL != pp_frame) {
                         pme->syncStreamParams(pp_frame);