nvdec: Don't leak template caps when registering elements with old NVIDIA driver
This commit is contained in:
parent
371b181292
commit
5b8ff98f96
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user