subtitle_decode_thread.h 425 B

12345678910111213141516171819202122
  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. class SubtitleDecodeThread : public ThreadBase
  7. {
  8. public:
  9. explicit SubtitleDecodeThread(VideoState* pState = nullptr);
  10. ~SubtitleDecodeThread();
  11. protected:
  12. void run() override;
  13. private:
  14. VideoState* m_pState;
  15. };
  16. #endif // AVPLAYER2_SUBTITLE_DECODE_THREAD_H