# HG changeset patch # User Alain Mazy # Date 1783326680 -7200 # Node ID 64a0500e449f658d2bcb92ab7d48de7b44e38b5e # Parent 0865c7118efa60e24ff7556609dfa6558b34a363 cleanup TODO-streaming diff -r 0865c7118efa -r 64a0500e449f OrthancFramework/Sources/DataSource/DataSourceReader.cpp --- a/OrthancFramework/Sources/DataSource/DataSourceReader.cpp Mon Jul 06 10:29:00 2026 +0200 +++ b/OrthancFramework/Sources/DataSource/DataSourceReader.cpp Mon Jul 06 10:31:20 2026 +0200 @@ -361,10 +361,8 @@ uint64_t& tasksCurrentMemory, unsigned int& tasksReservations) const { - { // TODO-Streaming - Question AM: why this copy ? - boost::shared_ptr budgetCopy(budget_); - budgetCopy->GetStatistics(tasksMaximumMemory, tasksCurrentMemory, tasksReservations); - } + boost::shared_ptr budgetCopy(budget_); // increment shared_ptr ref count to make sure the budget is not deleted while we use it. + budgetCopy->GetStatistics(tasksMaximumMemory, tasksCurrentMemory, tasksReservations); } diff -r 0865c7118efa -r 64a0500e449f OrthancFramework/Sources/DataSource/DicomSequentialReader.cpp --- a/OrthancFramework/Sources/DataSource/DicomSequentialReader.cpp Mon Jul 06 10:29:00 2026 +0200 +++ b/OrthancFramework/Sources/DataSource/DicomSequentialReader.cpp Mon Jul 06 10:31:20 2026 +0200 @@ -317,7 +317,7 @@ bool hasLossyQuality, unsigned int lossyQuality) const { - // TODO-Streaming : No optimization seems possible, we need to go through the transcoder anyway + // No optimization seems possible, we need to go through the transcoder anyway return CreateForTranscodedParsedDicomFile(targetSyntax, mode, hasLossyQuality, lossyQuality); } diff -r 0865c7118efa -r 64a0500e449f OrthancServer/Sources/OrthancGetRequestHandler.cpp --- a/OrthancServer/Sources/OrthancGetRequestHandler.cpp Mon Jul 06 10:29:00 2026 +0200 +++ b/OrthancServer/Sources/OrthancGetRequestHandler.cpp Mon Jul 06 10:31:20 2026 +0200 @@ -354,7 +354,7 @@ source.AcquireParsed(dicom); // This invalidates the "dicom" object, cf. (*) /** - * TODO-Streaming : It doesn't seem possible to uniformly trancode upfront + * It doesn't seem possible to uniformly trancode upfront * using "DicomSequentialReader::CreateForTranscoded()", as the * selected transfer syntax is not constant, but varies upon * each individual instance given the presentation context.