waylandsink: remove the useless wayland_lock

This commit is contained in:
George Kiagiadakis 2014-02-14 16:33:10 +01:00
parent 350d919719
commit 58a4d247b3
2 changed files with 0 additions and 8 deletions

View file

@ -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;

View file

@ -56,8 +56,6 @@ struct _GstWaylandSink
GstWlWindow *window;
GstBufferPool *pool;
GMutex wayland_lock;
gint video_width;
gint video_height;
enum wl_shm_format format;