From 0688756b71b40e0ac60c68af2fa1fe4aaeb1718d Mon Sep 17 00:00:00 2001 From: houxiao <houxiao@454eff88-639b-444f-9e54-f578c98de674> Date: 星期一, 13 二月 2017 16:27:41 +0800 Subject: [PATCH] replace log to support android --- RtspFace/main_dump_st_face.cpp | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/RtspFace/main_dump_st_face.cpp b/RtspFace/main_dump_st_face.cpp index 1285a81..eee3bf1 100644 --- a/RtspFace/main_dump_st_face.cpp +++ b/RtspFace/main_dump_st_face.cpp @@ -44,7 +44,7 @@ bool ret = rtspClient->init(&rtspConfig); if (!ret) { - LOG_ERROR << "rtspClient.init error"; + LOG_ERROR << "rtspClient.init error" << std::endl; exit(EXIT_FAILURE); } } @@ -54,7 +54,7 @@ bool ret = h264Decoder->init(nullptr); if (!ret) { - LOG_ERROR << "PL_H264Decoder.init error"; + LOG_ERROR << "PL_H264Decoder.init error" << std::endl; exit(EXIT_FAILURE); } } @@ -64,7 +64,7 @@ bool ret = avFrameYUV420->init(nullptr); if (!ret) { - LOG_ERROR << "PL_AVFrameYUV420.init error"; + LOG_ERROR << "PL_AVFrameYUV420.init error" << std::endl; exit(EXIT_FAILURE); } } @@ -77,7 +77,7 @@ bool ret = ple->init(&config); if (!ret) { - LOG_ERROR << "PL_Scale.init error"; + LOG_ERROR << "PL_Scale.init error" << std::endl; exit(EXIT_FAILURE); } } @@ -92,7 +92,7 @@ while(true) { - //LOG_ERROR << "begin pipe"; + //LOG_ERROR << "begin pipe" << std::endl; PipeMaterial pm; if (pipeLine.pipe(&pm) == sensetimeFaceTrack); @@ -102,9 +102,9 @@ { PipeMaterial& facePM = ((PipeMaterial*)(pm.buffer))[1]; st_ff_vect_t& faceFeatures = *((st_ff_vect_t*)facePM.buffer); - LOG_NOTICE << "faceFeatures " << faceFeatures.size(); + LOG_NOTICE << "faceFeatures " << faceFeatures.size() << std::endl; } - //LOG_ERROR << "end pipe"; + //LOG_ERROR << "end pipe" << std::endl; } } -- Gitblit v1.8.0