mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-23 02:26:35 +00:00
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:
parent
56e7a2f6ab
commit
052092cd2e
5 changed files with 3 additions and 12 deletions
|
@ -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(),
|
||||
]
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue