Fixed the build error using gcc13 95/302995/1 accepted/tizen/unified/20231219.160343 accepted/tizen/unified/riscv/20231219.070914
authorEunhye Choi <eunhae1.choi@samsung.com>
Mon, 18 Dec 2023 11:05:34 +0000 (20:05 +0900)
committerEunhye Choi <eunhae1.choi@samsung.com>
Mon, 18 Dec 2023 11:05:39 +0000 (20:05 +0900)
Change-Id: I1376bda9163824d6b2294c8fcbd8f020abeae7b3

include/esplusplayer/audioeasinginfo.h
src/esplusplayer/include_internal/esplayer/state_manager.hpp

index 582dc88..2549334 100644 (file)
@@ -17,6 +17,8 @@
 #ifndef __ESPLUSPLAYER_AUDIOEASINGINFO_H__
 #define __ESPLUSPLAYER_AUDIOEASINGINFO_H__
 
+#include <cstdint>
+
 namespace esplusplayer {
 
 enum class AudioEasingType {
@@ -36,4 +38,4 @@ struct AudioEasingInfo {
 };
 }  // namespace esplusplayer
 
-#endif  // __ESPLUSPLAYER_AUDIOEASINGINFO_H__
\ No newline at end of file
+#endif  // __ESPLUSPLAYER_AUDIOEASINGINFO_H__
index 959a247..3295556 100644 (file)
@@ -49,6 +49,7 @@
 #include <boost/msm/front/state_machine_def.hpp>  // front-end
 #include <mutex>
 #include <vector>
+#include <thread>
 
 #include "core/utils/plusplayer_log.h"
 #include "esplusplayer/esplusplayer.h"
@@ -323,7 +324,9 @@ class EsStateManager : private boost::noncopyable {
 
   bool ProcessEventStop(const es_event::Stop& stop_event) {
     std::unique_lock<std::mutex> lock(control_m_, std::defer_lock);
-    lock.try_lock();
+    if (!lock.try_lock())
+      LOG_WARN("failed to get try_lock");
+
     if (stopped_) return false;
     STATE_TRACE_P(this, "Transition Stop Requested, Current[%d]",
                   GetStateEnum());
@@ -396,4 +399,4 @@ class EsStateManager : private boost::noncopyable {
 
 }  // namespace esplusplayer
 
-#endif  // __ESPLUSPLAYER_SRC_ESPLAYER_STATE_MANAGER_H__
\ No newline at end of file
+#endif  // __ESPLUSPLAYER_SRC_ESPLAYER_STATE_MANAGER_H__