gl: Removed unreachable break, unused variable
authorSanjay NM <sanjay.nm@samsung.com>
Fri, 19 Sep 2014 10:02:33 +0000 (15:32 +0530)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:46 +0000 (19:31 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=736957

ext/gl/gstglimagesink.c
ext/gl/gstglmixer.c

index 197966a..59355a2 100644 (file)
@@ -554,7 +554,6 @@ gst_glimage_sink_query (GstBaseSink * bsink, GstQuery * query)
     {
       return gst_gl_handle_context_query ((GstElement *) glimage_sink, query,
           &glimage_sink->display);
-      break;
     }
     default:
       res = GST_BASE_SINK_CLASS (parent_class)->query (bsink, query);
index 5aa1bea..72291a8 100644 (file)
@@ -272,10 +272,9 @@ gst_gl_mixer_sink_query (GstAggregator * agg, GstAggregatorPad * bpad,
     case GST_QUERY_ALLOCATION:
     {
       GstQuery *decide_query = NULL;
-      gboolean negotiated;
 
       GST_OBJECT_LOCK (mix);
-      if (G_UNLIKELY (!(negotiated = mix->priv->negotiated))) {
+      if (G_UNLIKELY (!mix->priv->negotiated)) {
         GST_DEBUG_OBJECT (mix,
             "not negotiated yet, can't answer ALLOCATION query");
         GST_OBJECT_UNLOCK (mix);
@@ -624,7 +623,7 @@ gst_gl_mixer_decide_allocation (GstGLMixer * mix, GstQuery * query)
               G_TYPE_POINTER, &handle, "gst.gl.context.type", G_TYPE_STRING,
               &type, "gst.gl.context.apis", G_TYPE_STRING, &apis, NULL)
           && handle) {
-        GstGLPlatform platform = GST_GL_PLATFORM_NONE;
+        GstGLPlatform platform;
         GstGLAPI gl_apis;
 
         GST_DEBUG ("got GL context handle 0x%p with type %s and apis %s",