From ca8fe7810f09f7d8f58e6edeb6be50a885727cc4 Mon Sep 17 00:00:00 2001 From: ronag Date: Fri, 26 Aug 2011 11:31:08 +0000 Subject: [PATCH] 2.0. decklink_consumer: Free frame image buffer earlier. git-svn-id: https://casparcg.svn.sourceforge.net/svnroot/casparcg/server/branches/2.0.0.2@1294 362d55ac-95cf-4e76-9f9a-cbaa9c17b72d --- modules/decklink/consumer/decklink_consumer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/decklink/consumer/decklink_consumer.cpp b/modules/decklink/consumer/decklink_consumer.cpp index 7699f7fd8..89649542c 100644 --- a/modules/decklink/consumer/decklink_consumer.cpp +++ b/modules/decklink/consumer/decklink_consumer.cpp @@ -65,7 +65,7 @@ struct configuration class decklink_frame : public IDeckLinkVideoFrame { - const std::shared_ptr frame_; + std::shared_ptr frame_; const core::video_format_desc format_desc_; bool key_only_; @@ -103,6 +103,7 @@ public: { key_data_.resize(frame_->image_data().size()); fast_memshfl(key_data_.data(), frame_->image_data().begin(), frame_->image_data().size(), 0x0F0F0F0F, 0x0B0B0B0B, 0x07070707, 0x03030303); + frame_.reset(); } *buffer = key_data_.data(); } -- 2.39.5