e_client_video: Change video check method 84/320284/1
authorJunkyeong Kim <jk0430.kim@samsung.com>
Tue, 12 Nov 2024 05:47:18 +0000 (14:47 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Tue, 12 Nov 2024 06:57:59 +0000 (15:57 +0900)
In the input-thread, cannot use evas APIs.
So previous evas_object_data_get can make error in input-thread.

Change-Id: Idf23316bb7d130e464b8ce990f489c73a3cb9735

src/bin/core/e_client_video.c

index fbfaf6591348863fc8bf2cc332a18432583db40b..26781d0245332396058dc90ea5aa5cd709878bb8 100644 (file)
@@ -8,6 +8,7 @@
 #include "e_comp_wl_rsm_intern.h"
 #include "e_eom_intern.h"
 #include "e_client_intern.h"
+#include "e_hwc_window_intern.h"
 
 #define EO_DATA_KEY  "E_Client_Video"
 
@@ -558,9 +559,10 @@ e_client_video_tbm_surface_get(E_Client *ec)
 E_API Eina_Bool
 e_client_is_video(E_Client *ec)
 {
-   INTERNAL_DATA_GET;
+   if (ec->hwc_window)
+     return e_hwc_window_is_video(ec->hwc_window);
 
-   return !!ecv;
+   return EINA_FALSE;
 }
 
 EINTERN Eina_Bool