diff --git a/source/filters/filter-color-grade.cpp b/source/filters/filter-color-grade.cpp index 8ef4a5a5..84bbd6db 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)