From 58a4d247b3d8a87addb5c41eb3ad5c699469866b Mon Sep 17 00:00:00 2001 From: George Kiagiadakis Date: Fri, 14 Feb 2014 16:33:10 +0100 Subject: [PATCH] waylandsink: remove the useless wayland_lock --- ext/wayland/gstwaylandsink.c | 6 ------ ext/wayland/gstwaylandsink.h | 2 -- 2 files changed, 8 deletions(-) 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;