subtitle_decode_thread.h 470 B

12345678910111213141516171819202122232425
  1. #ifndef AVPLAYER2_SUBTITLE_DECODE_THREAD_H
  2. #define AVPLAYER2_SUBTITLE_DECODE_THREAD_H
  3. #pragma once
  4. #include "ThreadBase.h"
  5. #include "packets_sync.h"
  6. #include <atomic>
  7. class SubtitleDecodeThread : public ThreadBase
  8. {
  9. public:
  10. explicit SubtitleDecodeThread(VideoState* pState = nullptr);
  11. ~SubtitleDecodeThread();
  12. void stop() override;
  13. protected:
  14. void run() override;
  15. private:
  16. VideoState* m_pState;
  17. };
  18. #endif // AVPLAYER2_SUBTITLE_DECODE_THREAD_H