Fix some #if -> #ifdefs

This commit is contained in:
Cameron Gutman 2022-04-05 00:26:13 -05:00
parent fee6f75223
commit 6a0cf4bfd3
2 changed files with 2 additions and 2 deletions

View file

@ -194,7 +194,7 @@ public:
virtual void freeEGLImages(EGLDisplay, EGLImage[EGL_MAX_PLANES]) {}
#endif
#if HAVE_DRM
#ifdef HAVE_DRM
// By default we can't do DRM PRIME export
virtual bool canExportDrmPrime() {
return false;

View file

@ -50,7 +50,7 @@ public:
virtual void freeEGLImages(EGLDisplay dpy, EGLImage[EGL_MAX_PLANES]) override;
#endif
#if HAVE_DRM
#ifdef HAVE_DRM
virtual bool canExportDrmPrime() override;
virtual bool mapDrmPrimeFrame(AVFrame* frame, AVDRMFrameDescriptor* drmDescriptor) override;
virtual void unmapDrmPrimeFrame(AVDRMFrameDescriptor* drmDescriptor) override;