videopool: avoid caps copy
[platform/upstream/gstreamer.git] / sys / xvimage / xvimagepool.c
index 840e507..4ffdbd8 100644 (file)
@@ -538,7 +538,7 @@ xvimage_buffer_pool_set_config (GstBufferPool * pool, GstStructure * config)
 
   if (priv->caps)
     gst_caps_unref (priv->caps);
-  priv->caps = gst_caps_copy (caps);
+  priv->caps = gst_caps_ref (caps);
   priv->info = info;
 
   /* enable metadata based on config of the pool */