caopengllayersink: remove unused to_quit variable

It was always 0 and never set to anything meaningful.
This commit is contained in:
Matthew Waters 2016-07-26 16:01:19 +10:00
parent 01157c4433
commit dba5d3a37a
2 changed files with 0 additions and 8 deletions

View file

@ -63,7 +63,6 @@ struct _GstCAOpenGLLayerSink
GstGLCAOpenGLLayer *layer;
volatile gint to_quit;
gboolean keep_aspect_ratio;
/* avoid replacing the stored_buffer while drawing */

View 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;
}