filter-nv-face-tracking: Possibly fix for rare 0x0 bug

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2020-04-01 01:41:18 +02:00
parent cf6e867ba5
commit 30aaea8449
1 changed files with 3 additions and 3 deletions

View File

@ -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);