OSDN Git Service

Merge "Camera3: Make sure new metadata results signal other threads waiting" into...
authorIgor Murashkin <iam@google.com>
Thu, 23 May 2013 17:57:16 +0000 (17:57 +0000)
committerAndroid (Google) Code Review <android-gerrit@google.com>
Thu, 23 May 2013 17:57:17 +0000 (17:57 +0000)
1  2 
services/camera/libcameraservice/camera2/ZslProcessor3.cpp

@@@ -384,10 -390,15 +390,15 @@@ nsecs_t ZslProcessor3::getCandidateTime
                  continue;
              }
              nsecs_t frameTimestamp = entry.data.i64[0];
 -            if (minTimestamp > frameTimestamp) {
 +            if (minTimestamp > frameTimestamp || minTimestamp == -1) {
  
                  entry = frame.find(ANDROID_CONTROL_AE_STATE);
                  if (entry.count == 0) {
+                     /**
+                      * This is most likely a HAL bug. The aeState field is
+                      * mandatory, so it should always be in a metadata packet.
+                      */
                      ALOGW("%s: ZSL queue frame has no AE state field!",
                              __FUNCTION__);
                      continue;