mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-10 22:05:06 +00:00
filter-color-grade: Always return something in get_width/get_height
This commit is contained in:
parent
f5b4c1f7a1
commit
087cd79a7a
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue