From e40f11def5b0631469786cbadf4a858061c85cc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Fri, 16 Jul 2021 23:50:26 +0200 Subject: [PATCH] sink: Small code cleanup --- lib/gst/clapper/gtk4/gstclapperglsink.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/gst/clapper/gtk4/gstclapperglsink.c b/lib/gst/clapper/gtk4/gstclapperglsink.c index cadcacc0..dbd34c04 100644 --- a/lib/gst/clapper/gtk4/gstclapperglsink.c +++ b/lib/gst/clapper/gtk4/gstclapperglsink.c @@ -434,12 +434,9 @@ gst_clapper_gl_sink_query (GstBaseSink * bsink, GstQuery * query) switch (GST_QUERY_TYPE (query)) { case GST_QUERY_CONTEXT: - { - if (gst_gl_handle_context_query ((GstElement *) clapper_sink, query, - clapper_sink->display, clapper_sink->context, clapper_sink->gtk_context)) - return TRUE; + res = gst_gl_handle_context_query ((GstElement *) clapper_sink, query, + clapper_sink->display, clapper_sink->context, clapper_sink->gtk_context); break; - } default: res = GST_BASE_SINK_CLASS (parent_class)->query (bsink, query); break;