#include <common/memshfl.h>
#include <common/utf.h>
#include <common/prec_timer.h>
+#include <common/future.h>
#include <ffmpeg/producer/filter/filter.h>
}
- bool send(core::const_frame frame)
+ boost::unique_future<bool> send(core::const_frame frame)
{
if(!frame_buffer_.try_push(frame))
graph_->set_tag("dropped-frame");
- return is_running_;
+
+ return wrap_as_future(is_running_.load());
}
std::wstring print() const
consumer_.reset(new screen_consumer(config_, format_desc, channel_index));
}
- bool send(core::const_frame frame) override
+ boost::unique_future<bool> send(core::const_frame frame) override
{
return consumer_->send(frame);
}