libs: window: wayland: don't sync at destroy()
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Fri, 21 Apr 2017 12:07:44 +0000 (14:07 +0200)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Mon, 24 Apr 2017 11:14:05 +0000 (13:14 +0200)
commit3b314ba93e61bad3d8decbe45bcb12717b595a55
treeb87846c6fc6502ca1ba3562c95a71478278ac6b7
parentca314a25ccf81c9740d147c6b20de4c24b354301
libs: window: wayland: don't sync at destroy()

Don't call gst_vaapi_window_wayland_sync() when destroying the
wayland window instance, since it might lead to a lock at
gst_poll_wait() when more than one instances of vaapisink are
rendering in the same pipeline, this is because they share the
same window.

Since now all the frames are freed we don't need to freed the
private last_frame, since its address is invalid now.

https://bugzilla.gnome.org/show_bug.cgi?id=780442

Signed-off-by: Hyunjun Ko <zzoon@igalia.com>
gst-libs/gst/vaapi/gstvaapiwindow_wayland.c