Commit ab00551e authored by Tristan Matthews's avatar Tristan Matthews

* #17601: video: don't use atomic counter as boolean flag

parent 555263ed
......@@ -321,7 +321,6 @@ void VideoReceiveThread::run()
if (len <= 0 and requestKeyFrameCallback_) {
openDecoder();
requestKeyFrameCallback_(id_);
ost::Thread::sleep(25 /* ms */);
}
// we want our rendering code to be called by the shm_sink,
......
......@@ -72,11 +72,7 @@ class VideoReceiveThread {
int dstHeight_;
SHMSink sink_;
#ifdef CCPP_PREFIX
ost::AtomicCounter threadRunning_;
#else
ucommon::atomic::counter threadRunning_;
#endif
bool threadRunning_;
size_t bufferSize_;
const std::string id_;
AVIOInterruptCB interruptCb_;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment