e_output_hwc_windows: release the video data before window_data 95/173795/1
authorSooChan Lim <sc1.lim@samsung.com>
Mon, 26 Mar 2018 04:06:53 +0000 (13:06 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Mon, 26 Mar 2018 04:06:53 +0000 (13:06 +0900)
Change-Id: I7b985d22ebba82736d6f6c7dd6b1330af28e0f62

src/bin/e_output_hwc_windows.c

index 4435d9c809ac8ea8d997643eaa721454252b349a..065b79aad097cbbbdfde009cb008d169964e3318 100644 (file)
@@ -200,12 +200,12 @@ _e_output_hwc_windows_commit_handler(tdm_output *toutput, unsigned int sequence,
 
    EINA_LIST_FOREACH(e_output_hwc_windows_get(output_hwc), l, hwc_window)
      {
-         if (!e_hwc_window_commit_data_release(hwc_window)) continue;
          if (e_hwc_window_is_video(hwc_window))
            {
               ELOGF("HWC-WINS", "!!!!!!!! Output Commit Handler (VIDEO)!!!!!!!!", NULL, NULL);
               e_comp_wl_video_hwc_window_commit_data_release(hwc_window, sequence, tv_sec, tv_usec);
            }
+         if (!e_hwc_window_commit_data_release(hwc_window)) continue;
      }
 
    /* 'wait_commit' is mechanism to make 'fetch and commit' no more than one time per a frame;