e_client_video: use external video interface only when hwc policy is planes 23/271323/1
authorChangyeon Lee <cyeon.lee@samsung.com>
Thu, 10 Feb 2022 11:20:22 +0000 (20:20 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Fri, 18 Feb 2022 02:15:57 +0000 (11:15 +0900)
hwc windows policy have same hwc logic of primary and external output

Change-Id: If4b4bd4e9447ad52d4cf5a082b9a931487a864fa

src/bin/video/e_client_video.c

index c5ea0e7..1faa6b2 100644 (file)
@@ -84,7 +84,10 @@ _e_client_video_comp_iface_init(E_Client_Video *ecv, E_Client *ec)
    E_Video_Comp_Iface *iface = NULL;
    E_Hwc_Policy hwc_pol;
 
-   if ((e_config->eom_enable == EINA_TRUE) && (e_eom_is_ec_external(ec)))
+   hwc_pol = e_zone_video_hwc_policy_get(ec->zone);
+
+   if ((e_config->eom_enable == EINA_TRUE) && (e_eom_is_ec_external(ec)) &&
+       (hwc_pol == E_HWC_POLICY_PLANES))
      {
         VIN("Try to intialize external interface", ec);
         iface = e_video_external_iface_create(ecv);
@@ -97,7 +100,6 @@ _e_client_video_comp_iface_init(E_Client_Video *ecv, E_Client *ec)
         goto end;
      }
 
-   hwc_pol = e_zone_video_hwc_policy_get(ec->zone);
    if (hwc_pol != E_HWC_POLICY_NONE)
      {
         VIN("Initialize the interface of the client_video for HWC mode", ec);