From 772ea97db9042d4357814b834563036217d548b9 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Wed, 29 Jul 2015 13:53:44 +0200 Subject: [PATCH] Unbreak YCbCrInput (it needs to still support setting the "needs_mipmaps" int to zero). --- ycbcr_input.cpp | 9 +++++++++ ycbcr_input.h | 2 ++ 2 files changed, 11 insertions(+) diff --git a/ycbcr_input.cpp b/ycbcr_input.cpp index cf6632f..6cf3116 100644 --- a/ycbcr_input.cpp +++ b/ycbcr_input.cpp @@ -241,4 +241,13 @@ void YCbCrInput::invalidate_pixel_data() } } +bool YCbCrInput::set_int(const std::string& key, int value) +{ + if (key == "needs_mipmaps") { + // We currently do not support this. + return (value == 0); + } + return Effect::set_int(key, value); +} + } // namespace movit diff --git a/ycbcr_input.h b/ycbcr_input.h index 3049277..4c7b3e9 100644 --- a/ycbcr_input.h +++ b/ycbcr_input.h @@ -91,6 +91,8 @@ public: resource_pool = chain->get_resource_pool(); } + bool set_int(const std::string& key, int value); + private: ImageFormat image_format; YCbCrFormat ycbcr_format; -- 2.39.2