diff OrthancServer/ServerContext.cpp @ 3911:0ef7f4528be2 transcoding

renamed option TranscodingEnabled to TranscodeDicomProtocol
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 08 May 2020 12:10:04 +0200
parents 1f71c2f20e16
children 7610af1532c3
line wrap: on
line diff
--- a/OrthancServer/ServerContext.cpp	Fri May 08 12:03:26 2020 +0200
+++ b/OrthancServer/ServerContext.cpp	Fri May 08 12:10:04 2020 +0200
@@ -268,7 +268,7 @@
       storageCommitmentReports_.reset(new StorageCommitmentReports(lock.GetConfiguration().GetUnsignedIntegerParameter("StorageCommitmentReportsSize", 100)));
 
       // New option in Orthanc 1.7.0
-      transcodingEnabled_ = lock.GetConfiguration().GetBooleanParameter("TranscodingEnabled", true);
+      transcodeDicomProtocol_ = lock.GetConfiguration().GetBooleanParameter("TranscodeDicomProtocol", true);
     }
 
     jobsEngine_.SetThreadSleep(unitTesting ? 20 : 200);
@@ -1125,7 +1125,7 @@
   {
     const void* data = dicom.empty() ? NULL : dicom.c_str();
     
-    if (!transcodingEnabled_ ||
+    if (!transcodeDicomProtocol_ ||
         !connection.GetParameters().GetRemoteModality().IsTranscodingAllowed())
     {
       connection.Store(sopClassUid, sopInstanceUid, data, dicom.size(),