diff --git a/component_ext/movingphoto/movingphoto_pattern.cpp b/component_ext/movingphoto/movingphoto_pattern.cpp index 0e9593be7535c7cd23610751084db433e58e526e..f32c1e66a6e79dedaec5b3cab82edf1bc2f9095b 100644 --- a/component_ext/movingphoto/movingphoto_pattern.cpp +++ b/component_ext/movingphoto/movingphoto_pattern.cpp @@ -722,7 +722,7 @@ void MovingPhotoPattern::RegisterMediaPlayerEvent() }; auto&& errorEvent = [movingPhotoPattern, uiTaskExecutor]() { - uiTaskExecutor.PostSyncTask([movingPhotoPattern] { + uiTaskExecutor.PostTask([movingPhotoPattern] { auto movingPhoto = movingPhotoPattern.Upgrade(); CHECK_NULL_VOID(movingPhoto); ContainerScope scope(movingPhoto->instanceId_);