| 94 | } |
| 95 | |
| 96 | sp<FrameAudio> popAudio() override |
| 97 | { |
| 98 | std::lock_guard<std::recursive_mutex> l(this->frame_queue_lock); |
| 99 | if (this->audio_queue.empty()) |
| 100 | { |
| 101 | if (this->readNextFrame() == false) |
| 102 | { |
| 103 | return nullptr; |
| 104 | } |
| 105 | } |
| 106 | auto frame = this->audio_queue.front(); |
| 107 | this->audio_queue.pop(); |
| 108 | this->current_frame_audio++; |
| 109 | return frame; |
| 110 | } |
| 111 | |
| 112 | bool readNextFrame() |
| 113 | { |
no test coverage detected