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.
This commit is contained in:
Torge Matthies
2022-05-19 16:36:14 -07:00
committed by Jim
parent fe776a83eb
commit 5ac6c03a8a
+1
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;
}