diff --git a/ext/wayland/gstwaylandsink.c b/ext/wayland/gstwaylandsink.c index e6f3668c0a..8b2d527eae 100644 --- a/ext/wayland/gstwaylandsink.c +++ b/ext/wayland/gstwaylandsink.c @@ -139,8 +139,6 @@ gst_wayland_sink_init (GstWaylandSink * sink) sink->display = NULL; sink->window = NULL; sink->pool = NULL; - - g_mutex_init (&sink->wayland_lock); } static void @@ -187,8 +185,6 @@ gst_wayland_sink_finalize (GObject * object) if (sink->display) g_object_unref (sink->display); - g_mutex_clear (&sink->wayland_lock); - G_OBJECT_CLASS (parent_class)->finalize (object); } @@ -313,10 +309,8 @@ gst_wayland_sink_propose_allocation (GstBaseSink * bsink, GstQuery * query) if (caps == NULL) goto no_caps; - g_mutex_lock (&sink->wayland_lock); if ((pool = sink->pool)) gst_object_ref (pool); - g_mutex_unlock (&sink->wayland_lock); if (pool != NULL) { GstCaps *pcaps; diff --git a/ext/wayland/gstwaylandsink.h b/ext/wayland/gstwaylandsink.h index 7b474929de..4729a67562 100644 --- a/ext/wayland/gstwaylandsink.h +++ b/ext/wayland/gstwaylandsink.h @@ -56,8 +56,6 @@ struct _GstWaylandSink GstWlWindow *window; GstBufferPool *pool; - GMutex wayland_lock; - gint video_width; gint video_height; enum wl_shm_format format;