pans
2016-12-30 eb68a1e3ad5fb24b4c674b8f2fd529b8302c7d97
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);