onvifmetadata: removing encoding field

The encoding of ONVIF metadata is always UTF-8. ONVIF metadata may
or may not be encoded with gzip, but we don't see a use case for
transporting compressed ONVIF metadata between elements for now.
This commit is contained in:
Mathieu Duponchelle 2022-08-19 19:53:38 +02:00 committed by Sebastian Dröge
parent 56e7a2f6ab
commit 052092cd2e
5 changed files with 3 additions and 12 deletions

View file

@ -2506,7 +2506,6 @@ impl ElementImpl for ONVIFFMP4Mux {
.field("bitrate", gst::List::new([16000i32, 24000, 32000, 40000]))
.build(),
gst::Structure::builder("application/x-onvif-metadata")
.field("encoding", "utf8")
.field("parsed", true)
.build(),
]

View file

@ -96,7 +96,6 @@ impl ElementImpl for OnvifAggregator {
let meta_caps = gst::Caps::builder("application/x-onvif-metadata")
.field("parsed", true)
.field("encoding", "utf8")
.build();
let meta_sink_pad_template = gst::PadTemplate::with_gtype(

View file

@ -65,9 +65,7 @@ impl ElementImpl for OnvifDepay {
)
.unwrap();
let src_caps = gst::Caps::builder("application/x-onvif-metadata")
.field("encoding", "utf8")
.build();
let src_caps = gst::Caps::builder("application/x-onvif-metadata").build();
let src_pad_template = gst::PadTemplate::new(
"src",
gst::PadDirection::Src,

View file

@ -589,7 +589,6 @@ impl ElementImpl for OnvifMetadataParse {
fn pad_templates() -> &'static [gst::PadTemplate] {
static PAD_TEMPLATES: Lazy<Vec<gst::PadTemplate>> = Lazy::new(|| {
let caps = gst::Caps::builder("application/x-onvif-metadata")
.field("encoding", "utf8")
.field("parsed", true)
.build();
let src_pad_template = gst::PadTemplate::new(
@ -600,9 +599,7 @@ impl ElementImpl for OnvifMetadataParse {
)
.unwrap();
let caps = gst::Caps::builder("application/x-onvif-metadata")
.field("encoding", "utf8")
.build();
let caps = gst::Caps::builder("application/x-onvif-metadata").build();
let sink_pad_template = gst::PadTemplate::new(
"sink",
gst::PadDirection::Sink,

View file

@ -34,9 +34,7 @@ impl ElementImpl for OnvifPay {
fn pad_templates() -> &'static [gst::PadTemplate] {
static PAD_TEMPLATES: Lazy<Vec<gst::PadTemplate>> = Lazy::new(|| {
let sink_caps = gst::Caps::builder("application/x-onvif-metadata")
.field("encoding", "utf8")
.build();
let sink_caps = gst::Caps::builder("application/x-onvif-metadata").build();
let sink_pad_template = gst::PadTemplate::new(
"sink",
gst::PadDirection::Sink,