videopool: Removed unused private caps member

This commit is contained in:
Nicolas Dufresne 2018-06-11 13:51:47 -04:00
parent 5ad841e5ff
commit 4683182381

View file

@ -94,7 +94,6 @@ gst_buffer_pool_config_get_video_alignment (GstStructure * config,
/* bufferpool */
struct _GstVideoBufferPoolPrivate
{
GstCaps *caps;
GstVideoInfo info;
GstVideoAlignment video_align;
gboolean add_videometa;
@ -154,10 +153,6 @@ video_buffer_pool_set_config (GstBufferPool * pool, GstStructure * config)
GST_LOG_OBJECT (pool, "%dx%d, caps %" GST_PTR_FORMAT, width, height, caps);
if (priv->caps)
gst_caps_unref (priv->caps);
priv->caps = gst_caps_ref (caps);
priv->params = params;
if (priv->allocator)
gst_object_unref (priv->allocator);
@ -327,9 +322,6 @@ gst_video_buffer_pool_finalize (GObject * object)
GST_LOG_OBJECT (pool, "finalize video buffer pool %p", pool);
if (priv->caps)
gst_caps_unref (priv->caps);
if (priv->allocator)
gst_object_unref (priv->allocator);