wayland: fix null pointer dereference on error

gnome-shell doesn't the support wl_scaler interface which makes creating a
wayland display fail creation.

Found in the generic state changes test
This commit is contained in:
Matthew Waters 2016-03-16 22:19:25 +11:00
parent 96754a6d52
commit 16dec9eacc

View file

@ -56,6 +56,7 @@ gst_wl_display_finalize (GObject * gobject)
GstWlDisplay *self = GST_WL_DISPLAY (gobject);
gst_poll_set_flushing (self->wl_fd_poll, TRUE);
if (self->thread)
g_thread_join (self->thread);
/* to avoid buffers being unregistered from another thread