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:
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue