X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fimaging%2Ftizen%2Fnative-image-source-impl-tizen.cpp;h=153848f6cf40905694880cb478df21d2a86991e6;hb=3d8da1535c5c25188ab3ccd6abbafd225fc04ebc;hp=f8e8f7c2a6140b043281158332afae51cb77b6f1;hpb=e3bbb905c476248b33fd3ceb0b0f56e729d3d990;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/internal/imaging/tizen/native-image-source-impl-tizen.cpp b/dali/internal/imaging/tizen/native-image-source-impl-tizen.cpp index f8e8f7c..153848f 100644 --- a/dali/internal/imaging/tizen/native-image-source-impl-tizen.cpp +++ b/dali/internal/imaging/tizen/native-image-source-impl-tizen.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Samsung Electronics Co., Ltd. + * Copyright (c) 2022 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -38,7 +38,7 @@ namespace Adaptor { namespace { -const char* SAMPLER_TYPE = "samplerExternalOES"; +const char* SAMPLER_TYPE = "samplerExternalOES"; // clang-format off tbm_format FORMATS_BLENDING_REQUIRED[] = { @@ -556,6 +556,7 @@ bool NativeImageSourceTizen::ReleaseBuffer() void NativeImageSourceTizen::SetResourceDestructionCallback(EventThreadCallback* callback) { + Dali::Mutex::ScopedLock lock(mMutex); mResourceDestructionCallback = std::unique_ptr(callback); }