mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-12-13 21:02:28 +00:00
Remove unused function
This commit is contained in:
parent
fabbad5370
commit
8e257ab241
2 changed files with 8 additions and 15 deletions
|
@ -22,7 +22,14 @@ Pacer::Pacer(IFFmpegRenderer* renderer) :
|
||||||
|
|
||||||
Pacer::~Pacer()
|
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
|
// Called in an arbitrary thread by the IVsyncSource on V-sync
|
||||||
|
@ -140,15 +147,3 @@ void Pacer::submitFrame(AVFrame* frame)
|
||||||
av_frame_free(&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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -23,8 +23,6 @@ public:
|
||||||
|
|
||||||
void vsyncCallback();
|
void vsyncCallback();
|
||||||
|
|
||||||
void drain();
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QQueue<AVFrame*> m_FrameQueue;
|
QQueue<AVFrame*> m_FrameQueue;
|
||||||
QQueue<int> m_FrameQueueHistory;
|
QQueue<int> m_FrameQueueHistory;
|
||||||
|
|
Loading…
Reference in a new issue