#ifndef AVPLAYER2_STOPPLAY_WAITING_THREAD_H
#define AVPLAYER2_STOPPLAY_WAITING_THREAD_H

#pragma once

#include "ThreadBase.h"
#include <atomic>
#include <string>

class PlayerController;

class StopWaitingThread : public ThreadBase
{
public:
    explicit StopWaitingThread(PlayerController* parent, const std::string& file = "");
    ~StopWaitingThread();

protected:
    void run() override;

private:
    std::string m_file;
    PlayerController* m_parent;
};

#endif // AVPLAYER2_STOPPLAY_WAITING_THREAD_H
