mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 13:41:48 +00:00
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:
parent
96754a6d52
commit
16dec9eacc
1 changed files with 2 additions and 1 deletions
|
@ -56,7 +56,8 @@ gst_wl_display_finalize (GObject * gobject)
|
||||||
GstWlDisplay *self = GST_WL_DISPLAY (gobject);
|
GstWlDisplay *self = GST_WL_DISPLAY (gobject);
|
||||||
|
|
||||||
gst_poll_set_flushing (self->wl_fd_poll, TRUE);
|
gst_poll_set_flushing (self->wl_fd_poll, TRUE);
|
||||||
g_thread_join (self->thread);
|
if (self->thread)
|
||||||
|
g_thread_join (self->thread);
|
||||||
|
|
||||||
/* to avoid buffers being unregistered from another thread
|
/* to avoid buffers being unregistered from another thread
|
||||||
* at the same time, take their ownership */
|
* at the same time, take their ownership */
|
||||||
|
|
Loading…
Reference in a new issue