| | |
| | | _this->lastBuffer = nullptr;
|
| | | }
|
| | |
|
| | | //#todo
|
| | | //find frameQueue->Seek is pps/sps
|
| | | // if not: send bufferred pps , return;
|
| | |
|
| | |
|
| | | _this->lastBuffer = _this->in->frameQueue->Dequeue();
|
| | | if (_this->lastBuffer == nullptr)
|
| | | return false;
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | //#todo
|
| | | // find if is pps/sps
|
| | | // buffer the frame into RTSPServer2_Internal
|
| | |
|
| | | while (in->config.payBlockFullQueue && in->frameQueue->Full())
|
| | | {
|
| | | int ret = pthread_mutex_lock(in->queue_full_mutex);
|
| | |
| | |
|
| | | //static size_t f = 0;
|
| | | //static FILE *pFile = fopen("/data/aa.264", "wb");
|
| | | //fwrite(qbuff->buffer, sizeof(char), frame->buffSize, pFile);
|
| | | //fwrite(qbuff->buffer, sizeof(char), qbuff->buffSize, pFile);
|
| | | //fflush(pFile);
|
| | | //if (++f > 400){
|
| | | // fclose(pFile);
|
| | | // exit(0);
|