houxiao
2017-04-06 63d598d4443f906b34bedaf49e870b7a2be1a5c8
VisitFace/RtspNativeCodec/app/src/main/cpp/CameraWrapper.cpp
@@ -47,7 +47,7 @@
   PL_AndroidMediaCodecDecoder* amcDecoder = (PL_AndroidMediaCodecDecoder*)pipeLine->push_elem("PL_AndroidMediaCodecDecoder");
   ret = amcDecoder->init(&amcdConfig);
   if (!ret)
      if (!ret)
   {
      LOG_ERROR << "amcDecoder.init error" << LOG_ENDL;
      return  false;
@@ -84,19 +84,21 @@
      if (cameraWrapper.faceCacheLocked)
         continue;
      
      PipeMaterial pm;
#ifdef USE_ST_SDK
        PipeMaterial pm;
      ret = last->gain(pm);
      if (!ret)
         continue;
      int faceCount = cameraWrapper.faceCache.cachePm(pm);
      if (faceCount != 0 && cameraWrapper.faceCallback != 0)
      {
         // #todo jni thread may not able to invoke java callback
         //env->CallVoidMethod(obj, callback, cameraIdx , faceCount);
      }
#endif
   }
   
   LOG_INFO << "CameraWrapper::live_daemon_thd stop, ret=" << LOG_ENDL;