window->render_lock = render_lock;
window->area_surface = wl_compositor_create_surface (display->compositor);
+ if (!window->area_surface) {
+ GST_ERROR ("wl_compositor_create_surface(wl_compositor@%p) failed", display->compositor);
+ g_object_unref(window);
+ return NULL;
+ }
GST_WARNING
("area_surface(wl_surface)@%p = wl_compositor_create_surface(wl_compositor@%p)",
window->area_surface, display->compositor);
window->video_surface = wl_compositor_create_surface (display->compositor);
+ if (!window->video_surface) {
+ GST_ERROR ("wl_compositor_create_surface(wl_compositor@%p) failed", display->compositor);
+ wl_surface_destroy(window->area_surface);
+ g_object_unref(window);
+ return NULL;
+ }
GST_WARNING
("video_surface(wl_surface)@%p = wl_compositor_create_surface(wl_compositor@%p)",
window->video_surface, display->compositor);
/* not create shell_surface here for enlightenment */
display->need_shell_surface = TRUE;
window = gst_wl_window_new_internal (display, NULL, render_lock);
+ if (!window) {
+ GST_ERROR ("gst_wl_window_new_internal(GstWlDisplay@%p) failed", display);
+ return NULL;
+ }
/* for tizen enlightenment */
#if 0
gint width;
window = gst_wl_window_new_internal (display);
+ if (!window) {
+ GST_ERROR ("gst_wl_window_new_internal(GstWlDisplay@%p) failed", display);
+ return NULL;
+ }
/* go toplevel */
window->shell_surface = wl_shell_get_shell_surface (display->shell,
window = gst_wl_window_new_internal (display, NULL, render_lock);
}
+ if (!window) {
+ GST_ERROR ("gst_wl_window_new_internal(GstWlDisplay@%p) failed", display);
+ return NULL;
+ }
+
/*Area surface from App need to be under parent surface */
if (display->tizen_policy) {
GST_INFO