Use AVBufferRefs to keep EGLImages and DRM FDs around for the lifetime of the frame

This commit is contained in:
Cameron Gutman
2026-01-04 18:06:24 -06:00
parent 67cba9e397
commit 46c76534bc
8 changed files with 68 additions and 100 deletions
@@ -512,9 +512,6 @@ public:
EGLImage[EGL_MAX_PLANES]) {
return -1;
}
// Free the resources allocated during the last `exportEGLImages` call
virtual void freeEGLImages() {}
#endif
#ifdef HAVE_DRM
@@ -526,8 +523,6 @@ public:
virtual bool mapDrmPrimeFrame(AVFrame*, AVDRMFrameDescriptor*) {
return false;
}
virtual void unmapDrmPrimeFrame(AVDRMFrameDescriptor*) {}
#endif
protected: