e_hwc_windows: update accepted_state even if hwc_window is deleted
authorChangyeon Lee <cyeon.lee@samsung.com>
Mon, 14 Jan 2019 09:58:41 +0000 (18:58 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Fri, 12 Apr 2019 10:00:22 +0000 (19:00 +0900)
Change-Id: I69492a1f23181c8986dcf2cc31045dfe10ad992a

src/bin/e_hwc_windows.c

index e4b71229ddba309f716797a63ae4555012d0b9c8..ff6a99bbfb796a224086ff4df8744ac996201539 100644 (file)
@@ -167,7 +167,7 @@ _e_hwc_windows_commit_data_release(E_Hwc *hwc, int sequence,
    EINA_LIST_FOREACH(hwc->hwc_windows, l, hwc_window)
      {
          if (!hwc_window->commit_data) continue;
-         if (e_hwc_window_is_video(hwc_window))
+         if (e_hwc_window_is_video(hwc_window) && hwc_window->ec)
            e_client_video_commit_data_release(hwc_window->ec, sequence, tv_sec, tv_usec);
 
          if (!e_hwc_window_commit_data_release(hwc_window)) continue;
@@ -1479,7 +1479,6 @@ _e_hwc_windows_accept(E_Hwc *hwc)
 
    EINA_LIST_FOREACH(hwc->hwc_windows, l, hwc_window)
      {
-        if (hwc_window->is_deleted) continue;
         if (e_hwc_window_is_target(hwc_window)) continue;
 
         /* update the accepted_state */