obs-ffmpeg: Initialize mapped_res field in nv_texture_init

Otherwise it might never be initialized and nv_texture_free might unmap
a non-existant resource.
master
Torge Matthies 2021-12-26 14:01:32 +01:00 committed by Jim
parent fe776a83eb
commit 5ac6c03a8a
1 changed files with 1 additions and 0 deletions

View File

@ -187,6 +187,7 @@ static bool nv_texture_init(struct nvenc_data *enc, struct nv_texture *nvtex)
nvtex->res = res.registeredResource;
nvtex->tex = tex;
nvtex->mapped_res = NULL;
return true;
}