From 5243f5678db4f526b5b4dd4c89578c4cdaa411d3 Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Wed, 15 Jul 2015 17:35:22 -0400 Subject: [PATCH] gtkgstglwidget: Remove unused gl_caps --- ext/gtk/gtkgstglwidget.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/ext/gtk/gtkgstglwidget.c b/ext/gtk/gtkgstglwidget.c index 3d05d37b7d..67993f24b9 100644 --- a/ext/gtk/gtkgstglwidget.c +++ b/ext/gtk/gtkgstglwidget.c @@ -83,7 +83,6 @@ struct _GtkGstGLWidgetPrivate gboolean negotiated; GstBuffer *buffer; - GstCaps *gl_caps; GstCaps *caps; GstVideoInfo v_info; gboolean new_buffer; @@ -409,7 +408,6 @@ _reset (GtkGstGLWidget * gst_widget) gst_buffer_replace (&gst_widget->priv->buffer, NULL); gst_caps_replace (&gst_widget->priv->caps, NULL); - gst_caps_replace (&gst_widget->priv->gl_caps, NULL); gst_widget->priv->negotiated = FALSE; gst_widget->priv->initted = FALSE; @@ -803,10 +801,6 @@ gtk_gst_gl_widget_set_caps (GtkGstGLWidget * widget, GstCaps * caps) gst_caps_replace (&widget->priv->caps, caps); - widget->priv->gl_caps = gst_video_info_to_caps (&v_info); - gst_caps_set_features (widget->priv->gl_caps, 0, - gst_caps_features_from_string (GST_CAPS_FEATURE_MEMORY_GL_MEMORY)); - if (!_calculate_par (widget, &v_info)) { g_mutex_unlock (&widget->priv->lock); return FALSE;