mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
libs: window: wayland: cancel read at poll message
Always call wl_display_cancel_read() when an errno is set, but different to EAGAIN or EINTR. https://bugzilla.gnome.org/show_bug.cgi?id=780442
This commit is contained in:
parent
26486c436a
commit
9c3a4edf05
1 changed files with 4 additions and 4 deletions
|
@ -188,11 +188,11 @@ gst_vaapi_window_wayland_sync (GstVaapiWindow * window)
|
|||
int saved_errno = errno;
|
||||
if (saved_errno == EAGAIN || saved_errno == EINTR)
|
||||
goto again;
|
||||
if (saved_errno == EBUSY) { /* closing */
|
||||
wl_display_cancel_read (wl_display);
|
||||
wl_display_cancel_read (wl_display);
|
||||
if (saved_errno == EBUSY) /* flushing */
|
||||
return FALSE;
|
||||
}
|
||||
goto error;
|
||||
else
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (wl_display_read_events (wl_display) < 0)
|
||||
|
|
Loading…
Reference in a new issue