mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 04:42:18 +02:00
obs-filters: Reset RTX greenscreen on cuda error
This resets the RTX greenscreen filter if the FX returns a CUDA error. In case of a CUDA error 1099, the error can keep repeating locking up the filter which is inoperant. So if such an error is detected we reset the FX. Signed-off-by: pkv <pkv@obsproject.com>
This commit is contained in:
parent
cb051240ff
commit
e08632328d
@ -321,6 +321,8 @@ static bool process_texture_greenscreen(struct nv_greenscreen_data *filter)
|
||||
if (vfxErr != NVCV_SUCCESS) {
|
||||
const char *errString = NvCV_GetErrorStringFromCode(vfxErr);
|
||||
error("Error running the FX; error %i: %s", vfxErr, errString);
|
||||
if (vfxErr == NVCV_ERR_CUDA)
|
||||
nv_greenscreen_filter_reset(filter, NULL);
|
||||
}
|
||||
|
||||
/* 4. Map dst texture before transfer from dst img provided by FX */
|
||||
|
Loading…
Reference in New Issue
Block a user