Limit the number of queued frames in Pacer to prevent excessive memory consumption if the renderer gets blocked for a while

This commit is contained in:
Cameron Gutman
2019-02-18 12:13:45 -08:00
parent b6872456cd
commit e5a8b49c93
2 changed files with 18 additions and 0 deletions
@@ -31,6 +31,8 @@ private:
void renderFrame(AVFrame* frame);
void dropFrameForEnqueue(QQueue<AVFrame*>& queue);
QQueue<AVFrame*> m_RenderQueue;
QQueue<AVFrame*> m_PacingQueue;
QQueue<int> m_PacingQueueHistory;