Mercurial > hg > orthanc
diff Core/DicomParsing/ParsedDicomFile.cpp @ 3948:3d2fc1b5cc8c transcoding
ResourceModificationJob: Fix the SOP instance UID to preserve references
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 19 May 2020 17:23:30 +0200 |
parents | aae045f802f4 |
children | 884b55ce01f6 |
line wrap: on
line diff
--- a/Core/DicomParsing/ParsedDicomFile.cpp Tue May 19 16:19:05 2020 +0200 +++ b/Core/DicomParsing/ParsedDicomFile.cpp Tue May 19 17:23:30 2020 +0200 @@ -1655,6 +1655,9 @@ bool ParsedDicomFile::LookupTransferSyntax(std::string& result) { +#if 0 + // This was the implementation in Orthanc <= 1.6.1 + // TODO - Shouldn't "dataset.getCurrentXfer()" be used instead of // using the meta header? const char* value = NULL; @@ -1670,6 +1673,18 @@ { return false; } +#else + DicomTransferSyntax s; + if (FromDcmtkBridge::LookupOrthancTransferSyntax(s, GetDcmtkObject())) + { + result.assign(GetTransferSyntaxUid(s)); + return true; + } + else + { + return false; + } +#endif }