onvifmetadataparse: Only define the namespace prefix once for the top-level element

This commit is contained in:
Sebastian Dröge 2022-08-12 22:34:24 +03:00
parent b464e74d41
commit 837126be76

View file

@ -161,10 +161,7 @@ impl OnvifMetadataParse {
);
let xml = queued_frames.entry(dt_unix_ns).or_insert_with(|| {
Element::builder("VideoAnalytics", "http://www.onvif.org/ver10/schema")
.prefix(Some("tt".into()), "http://www.onvif.org/ver10/schema")
.unwrap()
.build()
Element::bare("VideoAnalytics", "http://www.onvif.org/ver10/schema")
});
xml.append_child(el.clone());