Make not assert when file path is invalid. 08/256308/2
authorseungho <sbsh.baek@samsung.com>
Thu, 1 Apr 2021 05:04:34 +0000 (14:04 +0900)
committerseungho <sbsh.baek@samsung.com>
Fri, 2 Apr 2021 11:10:58 +0000 (20:10 +0900)
Change-Id: I26806b0f0d03b0047f19297fb6f9fe9bf2423fdf
Signed-off-by: seungho <sbsh.baek@samsung.com>
dali/internal/system/common/capture-impl.cpp

index 8273d09..dfd48e2 100644 (file)
@@ -87,13 +87,11 @@ void Capture::Start(Dali::Actor source, const Dali::Vector2& position, const Dal
 
 void Capture::Start(Dali::Actor source, const Dali::Vector2& position, const Dali::Vector2& size, const std::string& path, const Dali::Vector4& clearColor)
 {
-  DALI_ASSERT_ALWAYS(path.size() > 4 && "Path is invalid.");
-
   // Increase the reference count focely to avoid application mistake.
   Reference();
 
   mPath = path;
-  if(mPath.size() > 0)
+  if(!mPath.empty())
   {
     mFileSave = true;
   }