# HG changeset patch # User Sebastien Jodogne # Date 1725891622 -7200 # Node ID b4fbd9d2c90708035078d35e8fa2b3b8bad4016d # Parent e7332019da3bb379032097a3ab9564db268e1553 fix compilation if plugins are disabled diff -r e7332019da3b -r b4fbd9d2c907 OrthancServer/Sources/ServerContext.cpp --- 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; }