summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 88c18bf)
raw | patch | inline | side by side (parent: 88c18bf)
author | Chandramohan <chandramohan.c@ti.com> | |
Wed, 11 Dec 2013 14:45:58 +0000 (20:15 +0530) | ||
committer | Chandramohan <chandramohan.c@ti.com> | |
Wed, 11 Dec 2013 14:45:58 +0000 (20:15 +0530) |
drm interface API is modified according to the wayland 1.0 protocol
and fixes the compilation issues
Signed-off-by: Chandramohan <chandramohan.c@ti.com>
and fixes the compilation issues
Signed-off-by: Chandramohan <chandramohan.c@ti.com>
ext/wayland/gstwaylandsink.c | patch | blob | history |
index 36d65b8a0630340ede72b9a6b53efbc854e1d2c0..885d71818ceb339e797d1dce485d6bf30271a5c1 100644 (file)
} else if (strcmp (interface, "wl_shell") == 0) {
d->shell = wl_registry_bind (registry, id, &wl_shell_interface, 1);
} else if (strcmp(interface, "wl_drm") == 0) {
- d->drm = wl_display_bind(display, id, &wl_drm_interface);
+ d->drm = wl_registry_bind(registry, id, &wl_drm_interface, 1);
wl_drm_add_listener(d->drm, &drm_listener, d);
}
wl_display_roundtrip (display->display);
- if (!display->shm) {
- GST_ERROR ("No wl_shm global received");
+ if (!display->drm) {
+ GST_ERROR("No wl_drm global received");
return NULL;
}
- wl_display_roundtrip (display->display);
-
return display;
}
sink->callback = wl_surface_frame (window->surface);
wl_callback_add_listener (sink->callback, &frame_listener, sink);
+ wl_surface_commit (sink->window->surface);
wl_display_flush (sink->display->display);
gst_buffer_replace (&sink->last_buf, sink->display_buf);
gst_buffer_replace (&sink->display_buf, buf);
*/
while (sink->callback) {
GST_LOG_OBJECT (sink, "waiting render");
- wl_display_iterate (sink->display->display, WL_DISPLAY_READABLE);
+ wl_display_dispatch (sink->display->display);
}
- wl_display_dispatch (sink->display->display);
return GST_FLOW_OK;
}