changeset 5767:b4fbd9d2c907

fix compilation if plugins are disabled
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 09 Sep 2024 16:20:22 +0200
parents e7332019da3b
children 23b5a090a64b 7fadeb395359
files OrthancServer/Sources/ServerContext.cpp
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerContext.cpp	Thu Sep 05 10:42:09 2024 +0200
+++ b/OrthancServer/Sources/ServerContext.cpp	Mon Sep 09 16:20:22 2024 +0200
@@ -1945,6 +1945,7 @@
       }
     }
 
+#if ORTHANC_ENABLE_PLUGINS == 1
     if (HasPlugins() && GetPlugins().HasCustomTranscoder())
     {
       LOG(INFO) << "The plugins and built-in image decoders failed to decode a frame, "
@@ -1962,6 +1963,7 @@
         return file->DecodeFrame(frameIndex);
       }
     }
+#endif
 
     return NULL;
   }