houxiao
2017-08-17 6faf88ba05f174a80c68f01c0412cae9789dbc8c
RtspFace/PL_RTSPServer2.cpp
@@ -160,6 +160,11 @@
         _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;
@@ -281,6 +286,10 @@
      }
   }
//#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);