From ce9cbe050e456aaf1bbf63d0e42a328194c85402 Mon Sep 17 00:00:00 2001 From: "Eunki, Hong" Date: Tue, 28 Nov 2023 14:31:16 +0900 Subject: [PATCH] Fix crash issue when FastTrackUploading load YUV pixelBuffer[0] was already invalidated after PixelBuffer::Convert. So, we should use mPixelData[0] when we want to get the size of image. Change-Id: I0e507c05f377416961fa17347fd26403a8153a27 Signed-off-by: Eunki, Hong --- dali-toolkit/internal/image-loader/fast-track-loading-task.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dali-toolkit/internal/image-loader/fast-track-loading-task.cpp b/dali-toolkit/internal/image-loader/fast-track-loading-task.cpp index ebefb94..0f5f123 100644 --- a/dali-toolkit/internal/image-loader/fast-track-loading-task.cpp +++ b/dali-toolkit/internal/image-loader/fast-track-loading-task.cpp @@ -222,9 +222,9 @@ void FastTrackLoadingTask::Load() std::ostringstream oss; oss << "["; oss << "pixelBuffers:" << pixelBuffers.size() << " "; - if(!pixelBuffers.empty()) + if(!mPixelData.empty()) { - oss << "size:" << pixelBuffers[0].GetWidth() << "x" << pixelBuffers[0].GetHeight() << " "; + oss << "size:" << mPixelData[0].GetWidth() << "x" << mPixelData[0].GetHeight() << " "; oss << "premult:" << mPremultiplied << " "; } oss << "url:" << mUrl.GetUrl() << "]"; -- 2.7.4