Disable fd close 67/195967/1
authorSunghyun kim <scholb.kim@samsung.com>
Thu, 20 Dec 2018 06:24:10 +0000 (15:24 +0900)
committerSunghyun kim <scholb.kim@samsung.com>
Thu, 20 Dec 2018 06:24:10 +0000 (15:24 +0900)
- in tizen 5.0, screen connector do fd close instead of dali.
  so we don't need to do close fd.

Change-Id: I610b0910ae22695804f0a01c98952a1ecef64799

widget_viewer_dali/internal/widget_view/widget_view_impl.cpp

index 629c9d975a6bcd1772898efc3de782e05cb46d0c..ee1de1932b5f436094ee8976565ea6340dbda99f 100644 (file)
@@ -1524,6 +1524,12 @@ void WidgetView::UpdateBuffer( struct tizen_remote_surface *surface, struct wl_b
     ConnectSignal( surface );
   }
 
+  if( !buffer)
+  {
+    DALI_LOG_ERROR("wl buffer is NULL");
+    return;
+  }
+
   //get tbm surface from buffer
   tbm_surface_h tbmSurface = static_cast< tbm_surface_h >( wl_buffer_get_user_data( buffer ) );
   UpdateImageSource( tbmSurface );
@@ -1535,9 +1541,6 @@ void WidgetView::UpdateBuffer( struct tizen_remote_surface *surface, struct wl_b
 
   mRemoteSurface = surface;
   mBuffer = buffer;
-
-  close( fd );
-
 }
 
 Dali::Shader WidgetView::CreateShader()