MCPcopy Create free account
hub / github.com/Vhonowslend/StreamFX-Public / pop_only

Method pop_only

components/ffmpeg/source/ffmpeg/avframe-queue.cpp:109–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109std::shared_ptr<AVFrame> avframe_queue::pop_only()
110{
111 std::unique_lock<std::mutex> ulock(this->_lock);
112 if (_frames.size() == 0) {
113 return nullptr;
114 }
115 std::shared_ptr<AVFrame> ret = _frames.front();
116 if (ret == nullptr) {
117 return nullptr;
118 }
119 _frames.pop_front();
120 return ret;
121}
122
123bool avframe_queue::empty()
124{

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected