mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
nvdec: Don't leak template caps when registering elements with old NVIDIA driver
This commit is contained in:
parent
371b181292
commit
5b8ff98f96
1 changed files with 4 additions and 0 deletions
|
@ -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,
|
gst_nvdec_subclass_register (plugin, GST_TYPE_NVDEC, codec_map[i].codec,
|
||||||
codec_map[i].codec_name, device_index, GST_RANK_PRIMARY,
|
codec_map[i].codec_name, device_index, GST_RANK_PRIMARY,
|
||||||
sink_templ, src_templ);
|
sink_templ, src_templ);
|
||||||
|
|
||||||
|
gst_clear_caps (&sink_templ);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gst_clear_caps (&src_templ);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue