nvdec: Don't leak template caps when registering elements with old NVIDIA driver

This commit is contained in:
Sebastian Dröge 2020-02-04 11:31:43 +02:00 committed by GStreamer Merge Bot
parent 371b181292
commit 5b8ff98f96

View file

@ -1804,8 +1804,12 @@ gst_nvdec_plugin_init (GstPlugin * plugin, guint device_index,
gst_nvdec_subclass_register (plugin, GST_TYPE_NVDEC, codec_map[i].codec,
codec_map[i].codec_name, device_index, GST_RANK_PRIMARY,
sink_templ, src_templ);
gst_clear_caps (&sink_templ);
}
gst_clear_caps (&src_templ);
return;
}