Skip to content

Commit

Permalink
Use sample.buffer()->data()->data()
Browse files Browse the repository at this point in the history
  • Loading branch information
khoidauminh committed Feb 9, 2025
1 parent 1225b0e commit d6b026f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/SampleThumbnail.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ SampleThumbnail::SampleThumbnail(const Sample& sample)
if (sample.sampleSize() == 0) { return; }

const auto fullResolutionWidth = sample.sampleSize() * DEFAULT_CHANNELS;
m_thumbnailCache->emplace_back(&sample.buffer()->data()->left(), fullResolutionWidth, fullResolutionWidth);
m_thumbnailCache->emplace_back(sample.buffer()->data()->data(), fullResolutionWidth, fullResolutionWidth);

while (m_thumbnailCache->back().width() >= AggregationPerZoomStep)
{
Expand Down

0 comments on commit d6b026f

Please sign in to comment.