#ifndef AVPLAYER2_SUBTITLE_DECODE_THREAD_H #define AVPLAYER2_SUBTITLE_DECODE_THREAD_H #pragma once #include "ThreadBase.h" #include "packets_sync.h" #include class SubtitleDecodeThread : public ThreadBase { public: explicit SubtitleDecodeThread(VideoState* pState = nullptr); ~SubtitleDecodeThread(); SubtitleDecodeThread(const SubtitleDecodeThread&) = delete; SubtitleDecodeThread& operator=(const SubtitleDecodeThread&) = delete; SubtitleDecodeThread(SubtitleDecodeThread&&) = delete; SubtitleDecodeThread& operator=(SubtitleDecodeThread&&) = delete; void stop() override; protected: void run() override; private: VideoState* m_pState; }; #endif // AVPLAYER2_SUBTITLE_DECODE_THREAD_H