rtphdrext: Use set_metadata() instead of set_static_metadata()

The latter needs a static string.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1583>
This commit is contained in:
Sebastian Dröge 2022-01-27 14:26:26 +02:00
parent 830d1595b9
commit 2584cd90e3

View file

@ -180,7 +180,7 @@ gst_rtp_header_extension_class_set_uri (GstRTPHeaderExtensionClass * klass,
{
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
gst_element_class_add_static_metadata (element_class,
gst_element_class_add_metadata (element_class,
GST_RTP_HEADER_EXTENSION_URI_METADATA_KEY, uri);
}