mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-12-13 04:42:27 +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()
|
||||
{
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -23,8 +23,6 @@ public:
|
|||
|
||||
void vsyncCallback();
|
||||
|
||||
void drain();
|
||||
|
||||
private:
|
||||
QQueue<AVFrame*> m_FrameQueue;
|
||||
QQueue<int> m_FrameQueueHistory;
|
||||
|
|
Loading…
Reference in a new issue