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

This commit is contained in:
Cameron Gutman committed 2026-01-04 18:06:24 -06:00
1 parent 67cba9e397
commit 46c76534bc
8 files changed
+68 -100

No files matched your search

@@ -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: