Skip to content
This repository was archived by the owner on May 17, 2023. It is now read-only.

Commit edea33d

Browse files
authored
fix: remove the invalid fd close (#2984)
1 parent 51ffdf5 commit edea33d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

samples/sample_common/src/vaapi_utils.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,6 @@ CLibVA* CreateLibVA(const std::string& devicePath, int type)
355355

356356
struct AcquireCtx
357357
{
358-
int fd;
359358
VAImage image;
360359
};
361360

@@ -451,7 +450,6 @@ void CLibVA::ReleaseVASurface(
451450
AcquireCtx* ctx = (AcquireCtx*)actx;
452451
if (ctx) {
453452
m_libva.vaDestroySurfaces(dpy2, &srf2, 1);
454-
close(ctx->fd);
455453
m_libva.vaReleaseBufferHandle(dpy1, ctx->image.buf);
456454
m_libva.vaDestroyImage(dpy1, ctx->image.image_id);
457455
free(ctx);

0 commit comments

Comments
 (0)