virtualcam-module: Update filter size immediately when used in OBS

Fixes a crash due to the previous output size being used when scaling
the frame.
This commit is contained in:
Richard Stanway
2023-01-27 13:03:22 -08:00
committed by Jim
parent 10e6d0fbd0
commit 9b1f7d6d21
@@ -270,6 +270,11 @@ void VCamFilter::Frame(uint64_t ts)
the format we present to match */
SetVideoFormat(GetVideoFormat(), new_obs_cx, new_obs_cy,
new_obs_interval);
/* Update the new filter size immediately since we
know it just changed above */
new_filter_cx = new_obs_cx;
new_filter_cy = new_obs_cy;
}
/* Re-initialize the main scaler to use the new resolution */