video: Check the supported format of hwc in check_if_pp_needed 51/204451/4
authorChangyeon Lee <cyeon.lee@samsung.com>
Wed, 24 Apr 2019 06:59:34 +0000 (15:59 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Wed, 24 Apr 2019 06:59:34 +0000 (15:59 +0900)
e_comp_screen_available_video_format return the pp available formats
if pp is supported.
format of the pp destination buffer should be checked in check_if_pp_needed

Change-Id: I86db82c37c22eee7b69cc4bd6fb7e65fb3851652

src/bin/video/iface/e_video_hwc_windows.c

index 2a93ea484f1b425e713c81446c5908358d50819c..0421a3e3824a729966b60b5e3cad753d6fb1530c 100644 (file)
@@ -343,13 +343,15 @@ _e_video_hwc_windows_iface_check_if_pp_needed(E_Video_Hwc *evh)
    const tbm_format *formats;
    Eina_Bool found = EINA_FALSE;
    E_Hwc *hwc;
+   tdm_error error = TDM_ERROR_NONE;
 
    evhw = (E_Video_Hwc_Windows *)evh;
    hwc = evhw->hwc;
    if (hwc->tdm_hwc_video_stream)
      return EINA_FALSE;
 
-   if (!e_comp_screen_available_video_formats_get(&formats, &count))
+   error = tdm_hwc_get_video_supported_formats(hwc->thwc, &formats, &count);
+   if (error != TDM_ERROR_NONE)
      return EINA_FALSE;
 
    for (i = 0; i < count; i++)