e_video_hwc_window: fix calling inappropriately tdm_hwc API passing with E_Hwc_Window...
authorSeunghun Lee <shiin.lee@samsung.com>
Thu, 27 Dec 2018 04:33:20 +0000 (13:33 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Fri, 12 Apr 2019 10:00:22 +0000 (19:00 +0900)
This patch also disable interface of property_get, it's not implemented yet.

Change-Id: I1811d650cefe96b0cc6ff6f1e7985dbce47ce984

src/bin/video/iface/e_video_hwc_windows.c

index 94084d84953bba3df09fe4a4c766c738e91d3d10..8fb85b8f7cb42b15d53bad3ecaa0818b4dbf66fb 100644 (file)
@@ -1789,7 +1789,7 @@ _e_video_hwc_windows_prop_name_get_by_id(E_Video_Hwc_Windows *evhw, unsigned int
    const tdm_prop *props;
    int i, count = 0;
 
-   tdm_hwc_get_video_available_properties(evhw->hwc_window, &props, &count);
+   e_hwc_windows_get_video_available_properties(evhw->hwc, &props, &count);
    for (i = 0; i < count; i++)
      {
         if (props[i].id == id)
@@ -1799,6 +1799,8 @@ _e_video_hwc_windows_prop_name_get_by_id(E_Video_Hwc_Windows *evhw, unsigned int
           }
      }
 
+   VER("No available property: id %d", id);
+
    return NULL;
 }
 
@@ -1872,6 +1874,7 @@ _e_video_hwc_windows_iface_disallowed_property(E_Video_Comp_Iface *iface)
 static Eina_Bool
 _e_video_hwc_windows_iface_property_get(E_Video_Comp_Iface *iface, unsigned int id, tdm_value *value)
 {
+#if 0
    tdm_error ret;
 
    IFACE_ENTRY;
@@ -1879,8 +1882,8 @@ _e_video_hwc_windows_iface_property_get(E_Video_Comp_Iface *iface, unsigned int
    ret = tdm_hwc_window_get_property(evhw->hwc_window, id, value);
    if (ret != TDM_ERROR_NONE)
      return EINA_FALSE;
-
-   return EINA_TRUE;
+#endif
+   return EINA_FALSE;
 }
 
 static Eina_Bool
@@ -1893,6 +1896,11 @@ _e_video_hwc_windows_iface_property_set(E_Video_Comp_Iface *iface, unsigned int
    VIN("set_attribute");
 
    name = _e_video_hwc_windows_prop_name_get_by_id(evhw, id);
+   if (!name)
+   {
+      VER("_e_video_hwc_windows_prop_name_get_by_id failed");
+      return EINA_FALSE;
+   }
 
    if (evhw->allowed_attribute)
      {