From: Matthew Waters Date: Fri, 29 May 2015 08:01:29 +0000 (+1000) Subject: gl/wayland: don't block the event loop after poll X-Git-Tag: 1.19.3~511^2~1989^2~821 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8332b1abe8d7786678610bf42a23537d8a41dc9b;p=platform%2Fupstream%2Fgstreamer.git gl/wayland: don't block the event loop after poll Use the dispatch_pending set of functions which just run the currently queued up events instead of potentially waiting for an event to occur. --- diff --git a/gst-libs/gst/gl/wayland/wayland_event_source.c b/gst-libs/gst/gl/wayland/wayland_event_source.c index dd1cf8e..114977a 100644 --- a/gst-libs/gst/gl/wayland/wayland_event_source.c +++ b/gst-libs/gst/gl/wayland/wayland_event_source.c @@ -120,9 +120,9 @@ wayland_event_source_dispatch (GSource * base, if (source->pfd.revents) { if (source->queue) - wl_display_roundtrip_queue (source->display, source->queue); + wl_display_dispatch_queue_pending (source->display, source->queue); else - wl_display_roundtrip (source->display); + wl_display_dispatch_pending (source->display); source->pfd.revents = 0; }