X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=core%2Fconsumer%2Fframe_consumer.h;h=4e6fef7323ae9a5c4de4c62d3609952eba78ac1c;hb=ef45ae47b4f50ef057041b5122d0f34c1659cc11;hp=a8e91619c2cc2e50419d3980d0bd5ce988e7c386;hpb=dfb3fe93b4e4e735ed973be93811c5697e4e150c;p=casparcg diff --git a/core/consumer/frame_consumer.h b/core/consumer/frame_consumer.h index a8e91619c..4e6fef732 100644 --- a/core/consumer/frame_consumer.h +++ b/core/consumer/frame_consumer.h @@ -34,13 +34,13 @@ namespace caspar { namespace core { class read_frame; struct video_format_desc; +size_t consumer_buffer_depth(); + struct frame_consumer : boost::noncopyable { virtual ~frame_consumer() {} - virtual void send(const safe_ptr& frame) = 0; - virtual size_t buffer_depth() const {return 1;} - virtual bool key_only() const{ return false;} + virtual bool send(const safe_ptr& frame) = 0; virtual void initialize(const video_format_desc& format_desc) = 0; virtual std::wstring print() const = 0; virtual bool has_synchronization_clock() const {return true;} @@ -51,8 +51,7 @@ struct frame_consumer : boost::noncopyable struct empty_frame_consumer : public frame_consumer { core::video_format_desc format_desc; - virtual void send(const safe_ptr&){} - virtual size_t buffer_depth() const{return 0;} + virtual bool send(const safe_ptr&){return false;} virtual void initialize(const video_format_desc&){} virtual std::wstring print() const {return L"empty";} virtual bool has_synchronization_clock() const {return false;}