From bf04af23fe0e3b97c917f71fc51896e05e338ac6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Tue, 2 Feb 2021 13:55:55 +0100 Subject: [PATCH] Do a lock on a gtk_sink Same object is unlocked here. Keep consistency. --- lib/gst/clapper/gtk4/gstgtkbasesink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gst/clapper/gtk4/gstgtkbasesink.c b/lib/gst/clapper/gtk4/gstgtkbasesink.c index f4f19671..1f35a9de 100644 --- a/lib/gst/clapper/gtk4/gstgtkbasesink.c +++ b/lib/gst/clapper/gtk4/gstgtkbasesink.c @@ -557,7 +557,7 @@ gst_gtk_base_sink_show_frame (GstVideoSink * vsink, GstBuffer * buf) gtk_sink = GST_GTK_BASE_SINK (vsink); - GST_OBJECT_LOCK (vsink); + GST_OBJECT_LOCK (gtk_sink); if (gtk_sink->widget == NULL) { GST_OBJECT_UNLOCK (gtk_sink);