e_comp_wl_capture: fix failure case of return value. 12/221912/2
authorSeunghun Lee <shiin.lee@samsung.com>
Wed, 8 Jan 2020 04:23:41 +0000 (13:23 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Wed, 8 Jan 2020 09:07:26 +0000 (09:07 +0000)
Change-Id: If7505c991fd56035c67b50ab3121aa910b92968b

src/bin/e_comp_wl_capture.c

index a8db50c768c58445ee91044530ba69f40424a3df..81b40faff1f82e7d1f102b84768e39942e969b84 100644 (file)
@@ -557,7 +557,7 @@ _e_capture_client_capture_with_video(Thread_Data *td)
    _e_capture_client_main_composite(td, capture_image);
 
    res = tbm_surface_internal_capture_buffer(capture_surface, td->image_dir, td->image_name, "png");
-   if (res != TBM_SURFACE_ERROR_NONE)
+   if (!res)
      {
         ERR("Failed to capture buffer");
         ret = EINA_FALSE;