[&]{audio = mix_audio(frames);});\r
\r
buffer_.push(std::make_pair(std::move(image), audio));\r
+\r
+ if(buffer_.size() > buffer_size_)\r
+ {\r
+ auto res = std::move(buffer_.front());\r
+ buffer_.pop();\r
+ \r
+ return make_safe<read_frame>(channel_.ogl(), channel_.get_format_desc().size, std::move(res.first.get()), std::move(res.second));\r
+ }\r
}\r
catch(...)\r
{\r
\r
CASPAR_LOG_CURRENT_EXCEPTION();\r
}\r
-\r
- if(buffer_.size() > buffer_size_)\r
- {\r
- auto res = std::move(buffer_.front());\r
- buffer_.pop();\r
- \r
- return make_safe<read_frame>(channel_.ogl(), channel_.get_format_desc().size, std::move(res.first.get()), std::move(res.second));\r
- }\r
\r
return make_safe<read_frame>();\r
}\r