filter-color-grade: Always return something in get_width/get_height

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2019-08-07 12:41:34 +02:00
parent f5b4c1f7a1
commit 087cd79a7a

View file

@ -282,6 +282,7 @@ try {
return reinterpret_cast<filter::color_grade::color_grade_instance*>(ptr)->get_width();
} catch (std::exception& ex) {
P_LOG_ERROR("<filter-color-grade> Failed to get width: %s", ex.what());
return 0;
}
uint32_t get_height(void* ptr)
@ -289,6 +290,7 @@ try {
return reinterpret_cast<filter::color_grade::color_grade_instance*>(ptr)->get_height();
} catch (std::exception& ex) {
P_LOG_ERROR("<filter-color-grade> Failed to get height: %s", ex.what());
return 0;
}
void update(void* ptr, obs_data_t* data)