6#define LOC QString("DecThread: ")
11 m_startPaused(StartPaused)
23 LOG(VB_PLAYBACK, LOG_INFO,
LOC +
"Decoder thread starting.");
26 LOG(VB_PLAYBACK, LOG_INFO,
LOC +
"Decoder thread exiting.");
This is a wrapper around QThread that does several additional things.
void RunProlog(void)
Sets up a thread, call this if you reimplement run().
void RunEpilog(void)
Cleans up a thread's resources, call this if you reimplement run().
bool wait(std::chrono::milliseconds time=std::chrono::milliseconds::max())
Wait for the MThread to exit, with a maximum timeout.
~MythDecoderThread() override
void run() override
Runs the Qt event loop unless we have a QRunnable, in which case we run the runnable run instead.
MythDecoderThread(MythPlayer *Player, bool StartPaused)
virtual void DecoderLoop(bool pause)
#define LOG(_MASK_, _LEVEL_, _QSTRING_)