tizenwlsink : Remove code about camera TCT which check g_objcet_new return value 93/172293/1 submit/tizen/20180313.070928
authorHyunil <hyunil46.park@samsung.com>
Tue, 13 Mar 2018 06:26:24 +0000 (15:26 +0900)
committerHyunil <hyunil46.park@samsung.com>
Tue, 13 Mar 2018 06:26:24 +0000 (15:26 +0900)
Change-Id: Ibdab93543d89f3bdb8b70d64acf6681f3bcdbe18
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
tizenwlsink/src/wldisplay.c

index 738a759..cb5b7b3 100644 (file)
@@ -365,27 +365,12 @@ gst_wl_display_new_existing (struct wl_display * display,
 {
   GstWlDisplay *self;
   GError *err = NULL;
-#ifdef TIZEN_FEATURE_WLSINK_ENHANCEMENT
-  GObject *temp = NULL;
-#endif
   gint i;
   FUNCTION;
 
   g_return_val_if_fail (display != NULL, NULL);
-#ifdef TIZEN_FEATURE_WLSINK_ENHANCEMENT
-  temp = g_type_class_ref (GST_TYPE_WL_DISPLAY);
-  if (temp) {
-    g_type_class_unref(temp);
-    GST_WARNING ("GST_TYPE_WL_DISPLAY type init for Camera TCT");
-  }
-#endif
+
   self = g_object_new (GST_TYPE_WL_DISPLAY, NULL);
-#ifdef TIZEN_FEATURE_WLSINK_ENHANCEMENT
-  if (self == NULL) {
-    GST_ERROR ("g_object_new return value is null");
-    return NULL;
-  }
-#endif
   self->display = display;
   self->own_display = take_ownership;