From 41bc5a329c73e3b43695f73f11c47c97c44cc1b6 Mon Sep 17 00:00:00 2001
From: chenke <chenke@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期四, 20 七月 2017 09:45:41 +0800
Subject: [PATCH] 

---
 RtspFace/PL_RTSPServer.cpp |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/RtspFace/PL_RTSPServer.cpp b/RtspFace/PL_RTSPServer.cpp
index 6d31f34..d705a8b 100644
--- a/RtspFace/PL_RTSPServer.cpp
+++ b/RtspFace/PL_RTSPServer.cpp
@@ -2,8 +2,8 @@
 #include "MaterialBuffer.h"
 #include "logger.h"
 
-#include <liveMedia.hh>
-#include <BasicUsageEnvironment.hh>
+#include <liveMedia/liveMedia.hh>
+#include <BasicUsageEnvironment/BasicUsageEnvironment.hh>
 
 #include "FFmpegRTSPServer/IEncoder.h"
 #include "FFmpegRTSPServer/LiveRTSPServer.h"
@@ -113,7 +113,7 @@
 		*FrameBuffer = pBuffer;
 		*FrameSize = newBufferSize;
 
-		LOG_DEBUG << "send frame size=" << in.buffSize;
+		LOG_DEBUG << "send frame size=" << in.buffSize << std::endl;
 	}
 	
 	virtual char ReleaseFrame()
@@ -125,7 +125,7 @@
 			int ret = pthread_mutex_unlock(in.frame_mutex);
 			if(ret != 0)
 			{
-				LOG_WARN << "pthread_mutex_unlock frame_mutex: " << strerror(ret);
+				LOG_WARN << "pthread_mutex_unlock frame_mutex: " << strerror(ret) << std::endl;
 				return 0;
 			}
 		}
@@ -143,7 +143,7 @@
 			int ret = pthread_mutex_lock(in.frame_mutex);
 			if(ret != 0)
 			{
-				LOG_WARN << "pthread_mutex_lock frame_mutex: " << strerror(ret);
+				LOG_WARN << "pthread_mutex_lock frame_mutex: " << strerror(ret) << std::endl;
 				return;
 			}
 		}
@@ -197,7 +197,7 @@
 	int ret = pthread_create(&(in->live_daemon_thid), NULL, live_daemon_thd, in);
 	if(ret != 0)
 	{
-		LOG_ERROR << "pthread_create: " << strerror(ret);
+		LOG_ERROR << "pthread_create: " << strerror(ret) << std::endl;
 		return false;
 	}
 
@@ -220,12 +220,12 @@
 	
 	if (pm.type != PipeMaterial::PMT_FRAME)
 	{
-		LOG_ERROR << "PL_RTSPServer::pay only support PMT_FRAME";
+		LOG_ERROR << "PL_RTSPServer::pay only support PMT_FRAME" << std::endl;
 		return false;
 	}
 	
 	if (in->buffSize > 0)
-		LOG_WARN << "PL_RTSPServer::pay may lost data size=" << in->buffSize;
+		LOG_WARN << "PL_RTSPServer::pay may lost data size=" << in->buffSize << std::endl;
 	
 	MB_Frame* frame = (MB_Frame*)pm.buffer;
 	if (frame->buffer == nullptr)

--
Gitblit v1.8.0