| | |
| | | #include "PL_RTSPClient.h"
|
| | | #include "MaterialBuffer.h"
|
| | | #include "logger.h"
|
| | | #include <pthread.h>
|
| | |
|
| | | void rtsp_client_sdp_callback(void* arg, const char* val);
|
| | |
| | | }
|
| | |
|
| | | 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;
|
| | |
| | | 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);
|