summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2016-03-16 22:19:25 +1100
committerMatthew Waters <matthew@centricular.com>2016-03-17 02:28:32 +1100
commit16dec9eaccd7aa6ebc2e123172ac05ef16e21bef (patch)
treebcbe061abfb91624c6c0b1b9eed7554ba2c6c5a7
parent96754a6d52bd62b2c72068a030c0d86b2e04b015 (diff)
downloadgstreamer-plugins-bad-16dec9eaccd7aa6ebc2e123172ac05ef16e21bef.tar.gz
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
-rw-r--r--ext/wayland/wldisplay.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/wayland/wldisplay.c b/ext/wayland/wldisplay.c
index 616ded3b6..331809591 100644
--- a/ext/wayland/wldisplay.c
+++ b/ext/wayland/wldisplay.c
@@ -56,7 +56,8 @@ gst_wl_display_finalize (GObject * gobject)
GstWlDisplay *self = GST_WL_DISPLAY (gobject);
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
* at the same time, take their ownership */