Remove unused function

This commit is contained in:
Cameron Gutman 2018-08-16 00:04:28 -07:00
parent fabbad5370
commit 8e257ab241
2 changed files with 8 additions and 15 deletions

View file

@ -22,7 +22,14 @@ Pacer::Pacer(IFFmpegRenderer* renderer) :
Pacer::~Pacer()
{
drain();
// Stop V-sync callbacks
delete m_VsyncSource;
m_VsyncSource = nullptr;
while (!m_FrameQueue.isEmpty()) {
AVFrame* frame = m_FrameQueue.dequeue();
av_frame_free(&frame);
}
}
// Called in an arbitrary thread by the IVsyncSource on V-sync
@ -140,15 +147,3 @@ void Pacer::submitFrame(AVFrame* frame)
av_frame_free(&frame);
}
}
void Pacer::drain()
{
// Stop V-sync callbacks
delete m_VsyncSource;
m_VsyncSource = nullptr;
while (!m_FrameQueue.isEmpty()) {
AVFrame* frame = m_FrameQueue.dequeue();
av_frame_free(&frame);
}
}

View file

@ -23,8 +23,6 @@ public:
void vsyncCallback();
void drain();
private:
QQueue<AVFrame*> m_FrameQueue;
QQueue<int> m_FrameQueueHistory;