From 994e457e3b0e9f12233211843e54a437418915e4 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Tue, 26 Jul 2016 16:01:19 +1000 Subject: [PATCH] caopengllayersink: remove unused to_quit variable It was always 0 and never set to anything meaningful. --- ext/gl/caopengllayersink.h | 1 - ext/gl/caopengllayersink.m | 7 ------- 2 files changed, 8 deletions(-) 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; }