diff --git a/ext/gl/caopengllayersink.h b/ext/gl/caopengllayersink.h index e3de325d2e..3507154ea9 100644 --- a/ext/gl/caopengllayersink.h +++ b/ext/gl/caopengllayersink.h @@ -63,7 +63,6 @@ struct _GstCAOpenGLLayerSink GstGLCAOpenGLLayer *layer; - volatile gint to_quit; gboolean keep_aspect_ratio; /* avoid replacing the stored_buffer while drawing */ diff --git a/ext/gl/caopengllayersink.m b/ext/gl/caopengllayersink.m index 83cb827c02..f547c73b6c 100644 --- a/ext/gl/caopengllayersink.m +++ b/ext/gl/caopengllayersink.m @@ -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; }