houxiao
2016-12-29 633e76c1d533c3d9c257b92df7ebdfd36c9fd8a0
RtspFace/main.cpp
@@ -9,11 +9,12 @@
#include "PL_SensetimeFaceDetect.h"
#include <iostream>
using namespace std;
#include "logger.h"
int main(int argc, char** argv)
{
   initLogger(2);
   PipeLine pipeLine;
   
   pipeLine.register_elem_creator("PL_RTSPClient", create_PL_RTSPClient);
@@ -37,7 +38,7 @@
      bool ret = rtspClient->init(&rtspConfig);
      if (!ret)
      {
         cout << "rtspClient.init error" << endl;
         LOG(ERROR) << "rtspClient.init error";
         exit(EXIT_FAILURE);
      }
   }
@@ -64,7 +65,7 @@
   //   bool ret = queue1->init(&config);
   //   if (!ret)
   //   {
   //      cout << "queue1.init error" << endl;
   //      LOG(ERROR) << "queue1.init error";
   //      exit(EXIT_FAILURE);
   //   }
   //}
@@ -80,15 +81,15 @@
      bool ret = rtspServer->init(&config);
      if (!ret)
      {
         cout << "rtspServer.init error" << endl;
         LOG(ERROR) << "rtspServer.init error";
         exit(EXIT_FAILURE);
      }
   }
   
   while(true)
   {
      //cout << "begin pipe" << endl;
      //LOG(ERROR) << "begin pipe";
      pipeLine.pipe();
      //cout << "end pipe" << endl;
      //LOG(ERROR) << "end pipe";
   }
}