houxiao
2016-12-26 993a7850d6cffb341fefabb68fbb97168c4a461c
RtspFace/main.cpp
@@ -14,6 +14,7 @@
   PipeLine pipeLine;
   
   pipeLine.register_elem_creator("PL_RTSPClient", create_PL_RTSPClient);
   pipeLine.register_elem_creator("PL_RTSPServer", create_PL_RTSPServer);
   pipeLine.register_elem_creator("PL_H264Decoder", create_PL_H264Decoder);
   pipeLine.register_elem_creator("PL_AVFrameYUV420", create_PL_AVFrameYUV420);
   pipeLine.register_elem_creator("PL_H264Encoder", create_PL_H264Encoder);
@@ -22,6 +23,10 @@
   RTSPConfig rtspConfig;
   rtspConfig.progName = argv[0];
   rtspConfig.rtspURL = argv[1];
   rtspConfig.aux = false; // ffmpeg need aux
   rtspConfig.verbosityLevel = 1;
   rtspConfig.tunnelOverHTTPPortNum = 0;
   rtspConfig.args = nullptr;
   bool ret = rtspClient->init(&rtspConfig);
   if (!ret)
   {
@@ -29,8 +34,8 @@
      exit(EXIT_FAILURE);
   }
   
   PL_H264Decoder* h264Decoder = (PL_H264Decoder*)pipeLine.push_elem("PL_H264Decoder");
   h264Decoder->init(nullptr);
   //PL_H264Decoder* h264Decoder = (PL_H264Decoder*)pipeLine.push_elem("PL_H264Decoder");
   //h264Decoder->init(nullptr);
   
   //PL_AVFrameYUV420* avFrameYUV420 = (PL_AVFrameYUV420*)pipeLine.push_elem("PL_AVFrameYUV420");
   //avFrameYUV420->init(nullptr);