From 633e76c1d533c3d9c257b92df7ebdfd36c9fd8a0 Mon Sep 17 00:00:00 2001 From: houxiao <houxiao@454eff88-639b-444f-9e54-f578c98de674> Date: 星期四, 29 十二月 2016 18:42:50 +0800 Subject: [PATCH] unify log --- RtspFace/PL_RTSPClient.cpp | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/RtspFace/PL_RTSPClient.cpp b/RtspFace/PL_RTSPClient.cpp index 71869db..ae885d7 100644 --- a/RtspFace/PL_RTSPClient.cpp +++ b/RtspFace/PL_RTSPClient.cpp @@ -1,5 +1,6 @@ #include "PL_RTSPClient.h" #include "MaterialBuffer.h" +#include "logger.h" #include <pthread.h> void rtsp_client_sdp_callback(void* arg, const char* val); @@ -179,8 +180,8 @@ } pm.type = PipeMaterial::PMT_FRAME; - pm.buffer = (uint8_t*)(&(in->lastFrame)); - pm.buffSize = sizeof(in->lastFrame); + pm.buffer = &(in->lastFrame); + pm.buffSize = 0; pm.former = this; return true; @@ -223,6 +224,8 @@ in->lastFrame.type = MB_Frame::MBFT_H264_NALU; in->lastFrame.buffer = buffer; in->lastFrame.buffSize = buffSize; + in->lastFrame.width = 0; + in->lastFrame.height = 0; in->lastFrame.pts = presentationTime; int ret = pthread_mutex_unlock(in->frame_mutex); -- Gitblit v1.8.0