Fix mTerminate not being initialised.
This commit is contained in:
parent
cf82d767de
commit
c8c09e560f
|
@ -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));
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue