mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
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.
This commit is contained in:
parent
349685ad27
commit
2442c240f5
1 changed files with 2 additions and 2 deletions
|
@ -120,9 +120,9 @@ wayland_event_source_dispatch (GSource * base,
|
||||||
|
|
||||||
if (source->pfd.revents) {
|
if (source->pfd.revents) {
|
||||||
if (source->queue)
|
if (source->queue)
|
||||||
wl_display_roundtrip_queue (source->display, source->queue);
|
wl_display_dispatch_queue_pending (source->display, source->queue);
|
||||||
else
|
else
|
||||||
wl_display_roundtrip (source->display);
|
wl_display_dispatch_pending (source->display);
|
||||||
source->pfd.revents = 0;
|
source->pfd.revents = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue