mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-08-24 10:14:13 -05:00
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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user