Fix mTerminate not being initialised.

This commit is contained in:
Isaac Connor 2022-01-25 14:25:13 -05:00
parent cf82d767de
commit c8c09e560f
2 changed files with 4 additions and 3 deletions

View File

@ -45,8 +45,10 @@ RtpSource::RtpSource(
mFrame(65536), mFrame(65536),
mFrameCount(0), mFrameCount(0),
mFrameGood(true), mFrameGood(true),
prevM(false),
mFrameReady(false), mFrameReady(false),
mFrameProcessed(false) mFrameProcessed(false),
mTerminate(false)
{ {
char hostname[256] = ""; char hostname[256] = "";
gethostname(hostname, sizeof(hostname)); gethostname(hostname, sizeof(hostname));

View File

@ -91,8 +91,6 @@ private:
bool mFrameGood; bool mFrameGood;
bool prevM; bool prevM;
bool mTerminate;
bool mFrameReady; bool mFrameReady;
std::condition_variable mFrameReadyCv; std::condition_variable mFrameReadyCv;
std::mutex mFrameReadyMutex; std::mutex mFrameReadyMutex;
@ -100,6 +98,7 @@ private:
bool mFrameProcessed; bool mFrameProcessed;
std::condition_variable mFrameProcessedCv; std::condition_variable mFrameProcessedCv;
std::mutex mFrameProcessedMutex; std::mutex mFrameProcessedMutex;
bool mTerminate;
private: private:
void init(uint16_t seq); void init(uint16_t seq);