From 30aaea8449a8ba3fed49c3cb79b86536cba73777 Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Wed, 1 Apr 2020 01:41:18 +0200 Subject: [PATCH] filter-nv-face-tracking: Possibly fix for rare 0x0 bug --- source/filters/filter-nv-face-tracking.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/filters/filter-nv-face-tracking.cpp b/source/filters/filter-nv-face-tracking.cpp index 4e089b2a..35a2ccd3 100644 --- a/source/filters/filter-nv-face-tracking.cpp +++ b/source/filters/filter-nv-face-tracking.cpp @@ -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);