mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-11 06:15:05 +00:00
filter-nv-face-tracking: Possibly fix for rare 0x0 bug
This commit is contained in:
parent
cf6e867ba5
commit
30aaea8449
1 changed files with 3 additions and 3 deletions
|
@ -212,9 +212,9 @@ void filter::nvidia::face_tracking_instance::video_tick(float seconds)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Update Buffers
|
// Update Buffers
|
||||||
uint32_t width = obs_source_get_width(_self);
|
uint32_t width = obs_source_get_base_width(obs_filter_get_target(_self));
|
||||||
uint32_t height = obs_source_get_height(_self);
|
uint32_t height = obs_source_get_base_height(obs_filter_get_target(_self));
|
||||||
if ((width != _width) || (height != _height))
|
if (((width != _width) || (height != _height)) && width && height)
|
||||||
try {
|
try {
|
||||||
// Recreate things.
|
// Recreate things.
|
||||||
create_image_buffer(width, height);
|
create_image_buffer(width, height);
|
||||||
|
|
Loading…
Reference in a new issue