houxiao
2016-12-29 633e76c1d533c3d9c257b92df7ebdfd36c9fd8a0
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);