From 087cd79a7abd68ffadaf49488321a1e427f9dcc5 Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Wed, 7 Aug 2019 12:41:34 +0200 Subject: [PATCH] filter-color-grade: Always return something in get_width/get_height --- source/filters/filter-color-grade.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/filters/filter-color-grade.cpp b/source/filters/filter-color-grade.cpp index 8ef4a5a..84bbd6d 100644 --- a/source/filters/filter-color-grade.cpp +++ b/source/filters/filter-color-grade.cpp @@ -282,6 +282,7 @@ try { return reinterpret_cast(ptr)->get_width(); } catch (std::exception& ex) { P_LOG_ERROR(" Failed to get width: %s", ex.what()); + return 0; } uint32_t get_height(void* ptr) @@ -289,6 +290,7 @@ try { return reinterpret_cast(ptr)->get_height(); } catch (std::exception& ex) { P_LOG_ERROR(" Failed to get height: %s", ex.what()); + return 0; } void update(void* ptr, obs_data_t* data)