mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 02:00:33 +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,10 +188,10 @@ gst_vaapi_window_wayland_sync (GstVaapiWindow * window)
|
||||||
int saved_errno = errno;
|
int saved_errno = errno;
|
||||||
if (saved_errno == EAGAIN || saved_errno == EINTR)
|
if (saved_errno == EAGAIN || saved_errno == EINTR)
|
||||||
goto again;
|
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;
|
return FALSE;
|
||||||
}
|
else
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue