qsvencoder: Fix caps leak in Linux build
authorSeungha Yang <seungha@centricular.com>
Mon, 21 Feb 2022 20:19:51 +0000 (05:19 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 22 Feb 2022 12:55:26 +0000 (12:55 +0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1769>

subprojects/gst-plugins-bad/sys/qsv/gstqsvencoder.cpp

index 1a395fc..f3b1db0 100644 (file)
@@ -884,7 +884,6 @@ gst_qsv_encoder_prepare_system_pool (GstQsvEncoder * self,
 
   priv->internal_pool = gst_video_buffer_pool_new ();
   config = gst_buffer_pool_get_config (priv->internal_pool);
-  caps = gst_video_info_to_caps (aligned_info);
   gst_buffer_pool_config_add_option (config, GST_BUFFER_POOL_OPTION_VIDEO_META);
   gst_buffer_pool_config_set_params (config,
       caps, GST_VIDEO_INFO_SIZE (aligned_info), 0, 0);