gtkgstglwidget: Remove unused gl_caps

This commit is contained in:
Nicolas Dufresne 2015-07-15 17:35:22 -04:00
parent d43e3e693c
commit 5243f5678d

View file

@ -83,7 +83,6 @@ struct _GtkGstGLWidgetPrivate
gboolean negotiated; gboolean negotiated;
GstBuffer *buffer; GstBuffer *buffer;
GstCaps *gl_caps;
GstCaps *caps; GstCaps *caps;
GstVideoInfo v_info; GstVideoInfo v_info;
gboolean new_buffer; gboolean new_buffer;
@ -409,7 +408,6 @@ _reset (GtkGstGLWidget * gst_widget)
gst_buffer_replace (&gst_widget->priv->buffer, NULL); gst_buffer_replace (&gst_widget->priv->buffer, NULL);
gst_caps_replace (&gst_widget->priv->caps, 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->negotiated = FALSE;
gst_widget->priv->initted = 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); 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)) { if (!_calculate_par (widget, &v_info)) {
g_mutex_unlock (&widget->priv->lock); g_mutex_unlock (&widget->priv->lock);
return FALSE; return FALSE;