mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-10 22:05:06 +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;
|
||||
|
||||
// Update Buffers
|
||||
uint32_t width = obs_source_get_width(_self);
|
||||
uint32_t height = obs_source_get_height(_self);
|
||||
if ((width != _width) || (height != _height))
|
||||
uint32_t width = obs_source_get_base_width(obs_filter_get_target(_self));
|
||||
uint32_t height = obs_source_get_base_height(obs_filter_get_target(_self));
|
||||
if (((width != _width) || (height != _height)) && width && height)
|
||||
try {
|
||||
// Recreate things.
|
||||
create_image_buffer(width, height);
|
||||
|
|
Loading…
Reference in a new issue