caopengllayersink: remove unused to_quit variable
authorMatthew Waters <matthew@centricular.com>
Tue, 26 Jul 2016 06:01:19 +0000 (16:01 +1000)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:32:21 +0000 (19:32 +0000)
It was always 0 and never set to anything meaningful.

ext/gl/caopengllayersink.h
ext/gl/caopengllayersink.m

index e3de325d2ee3167fa9ae382b32c258820c64db14..3507154ea9992d6da99dfce3c8b0da7230afbcde 100644 (file)
@@ -63,7 +63,6 @@ struct _GstCAOpenGLLayerSink
 
     GstGLCAOpenGLLayer *layer;
 
-    volatile gint to_quit;
     gboolean keep_aspect_ratio;
 
     /* avoid replacing the stored_buffer while drawing */
index 83cb827c02addada0c668e7e392d8d121dcbcf0d..f547c73b6c11852019fe24241a02f04f0a3955ba 100644 (file)
@@ -492,7 +492,6 @@ gst_ca_opengl_layer_sink_change_state (GstElement * element, GstStateChange tran
       _ensure_gl_setup (ca_sink);
       break;
     case GST_STATE_CHANGE_READY_TO_PAUSED:
-      g_atomic_int_set (&ca_sink->to_quit, 0);
       break;
     case GST_STATE_CHANGE_PAUSED_TO_PLAYING:
       break;
@@ -740,12 +739,6 @@ gst_ca_opengl_layer_sink_show_frame (GstVideoSink * vsink, GstBuffer * buf)
   if (old_sync)
     gst_buffer_unref (old_sync);
 
-  if (g_atomic_int_get (&ca_sink->to_quit) != 0) {
-    GST_ELEMENT_ERROR (ca_sink, RESOURCE, NOT_FOUND,
-        ("%s", gst_gl_context_get_error ()), (NULL));
-    return GST_FLOW_ERROR;
-  }
-
   return GST_FLOW_OK;
 }