| 145 | } |
| 146 | |
| 147 | int VideoFilterChain::pull(std::unique_ptr<IAFFrame> &frame) |
| 148 | { |
| 149 | IAFFrame *framePtr = nullptr; |
| 150 | if (!mOutPutFrames.empty()) { |
| 151 | framePtr = mOutPutFrames.front(); |
| 152 | mOutPutFrames.pop(); |
| 153 | } |
| 154 | |
| 155 | if (framePtr == nullptr) { |
| 156 | return -1; |
| 157 | } |
| 158 | |
| 159 | frame.reset(framePtr); |
| 160 | return 0; |
| 161 | } |
| 162 | |
| 163 | bool VideoFilterChain::empty() |
| 164 | { |
no test coverage detected