mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
waylandsink: remove the useless wayland_lock
This commit is contained in:
parent
350d919719
commit
58a4d247b3
2 changed files with 0 additions and 8 deletions
|
@ -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;
|
||||
|
|
|
@ -56,8 +56,6 @@ struct _GstWaylandSink
|
|||
GstWlWindow *window;
|
||||
GstBufferPool *pool;
|
||||
|
||||
GMutex wayland_lock;
|
||||
|
||||
gint video_width;
|
||||
gint video_height;
|
||||
enum wl_shm_format format;
|
||||
|
|
Loading…
Reference in a new issue