Mercurial > hg > orthanc
comparison OrthancServer/Sources/ServerContext.cpp @ 4274:09ed936fd381
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 03 Nov 2020 12:28:25 +0100 |
parents | 0ae2ca210077 |
children | 208029732d51 |
comparison
equal
deleted
inserted
replaced
4273:0034f855c023 | 4274:09ed936fd381 |
---|---|
1439 { | 1439 { |
1440 if (builtinDecoderTranscoderOrder_ == BuiltinDecoderTranscoderOrder_Before) | 1440 if (builtinDecoderTranscoderOrder_ == BuiltinDecoderTranscoderOrder_Before) |
1441 { | 1441 { |
1442 // Use Orthanc's built-in decoder, using the cache to speed-up | 1442 // Use Orthanc's built-in decoder, using the cache to speed-up |
1443 // things on multi-frame images | 1443 // things on multi-frame images |
1444 ServerContext::DicomCacheLocker locker(*this, publicId); | |
1445 | 1444 |
1446 std::unique_ptr<ImageAccessor> decoded; | 1445 std::unique_ptr<ImageAccessor> decoded; |
1447 try | 1446 try |
1448 { | 1447 { |
1448 ServerContext::DicomCacheLocker locker(*this, publicId); | |
1449 decoded.reset(locker.GetDicom().DecodeFrame(frameIndex)); | 1449 decoded.reset(locker.GetDicom().DecodeFrame(frameIndex)); |
1450 } | 1450 } |
1451 catch (OrthancException& e) | 1451 catch (OrthancException& e) |
1452 { | 1452 { |
1453 } | 1453 } |