mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-06-08 00:18:56 +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]))
|
.field("bitrate", gst::List::new([16000i32, 24000, 32000, 40000]))
|
||||||
.build(),
|
.build(),
|
||||||
gst::Structure::builder("application/x-onvif-metadata")
|
gst::Structure::builder("application/x-onvif-metadata")
|
||||||
.field("encoding", "utf8")
|
|
||||||
.field("parsed", true)
|
.field("parsed", true)
|
||||||
.build(),
|
.build(),
|
||||||
]
|
]
|
||||||
|
|
|
@ -96,7 +96,6 @@ impl ElementImpl for OnvifAggregator {
|
||||||
|
|
||||||
let meta_caps = gst::Caps::builder("application/x-onvif-metadata")
|
let meta_caps = gst::Caps::builder("application/x-onvif-metadata")
|
||||||
.field("parsed", true)
|
.field("parsed", true)
|
||||||
.field("encoding", "utf8")
|
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
let meta_sink_pad_template = gst::PadTemplate::with_gtype(
|
let meta_sink_pad_template = gst::PadTemplate::with_gtype(
|
||||||
|
|
|
@ -65,9 +65,7 @@ impl ElementImpl for OnvifDepay {
|
||||||
)
|
)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
let src_caps = gst::Caps::builder("application/x-onvif-metadata")
|
let src_caps = gst::Caps::builder("application/x-onvif-metadata").build();
|
||||||
.field("encoding", "utf8")
|
|
||||||
.build();
|
|
||||||
let src_pad_template = gst::PadTemplate::new(
|
let src_pad_template = gst::PadTemplate::new(
|
||||||
"src",
|
"src",
|
||||||
gst::PadDirection::Src,
|
gst::PadDirection::Src,
|
||||||
|
|
|
@ -589,7 +589,6 @@ impl ElementImpl for OnvifMetadataParse {
|
||||||
fn pad_templates() -> &'static [gst::PadTemplate] {
|
fn pad_templates() -> &'static [gst::PadTemplate] {
|
||||||
static PAD_TEMPLATES: Lazy<Vec<gst::PadTemplate>> = Lazy::new(|| {
|
static PAD_TEMPLATES: Lazy<Vec<gst::PadTemplate>> = Lazy::new(|| {
|
||||||
let caps = gst::Caps::builder("application/x-onvif-metadata")
|
let caps = gst::Caps::builder("application/x-onvif-metadata")
|
||||||
.field("encoding", "utf8")
|
|
||||||
.field("parsed", true)
|
.field("parsed", true)
|
||||||
.build();
|
.build();
|
||||||
let src_pad_template = gst::PadTemplate::new(
|
let src_pad_template = gst::PadTemplate::new(
|
||||||
|
@ -600,9 +599,7 @@ impl ElementImpl for OnvifMetadataParse {
|
||||||
)
|
)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
let caps = gst::Caps::builder("application/x-onvif-metadata")
|
let caps = gst::Caps::builder("application/x-onvif-metadata").build();
|
||||||
.field("encoding", "utf8")
|
|
||||||
.build();
|
|
||||||
let sink_pad_template = gst::PadTemplate::new(
|
let sink_pad_template = gst::PadTemplate::new(
|
||||||
"sink",
|
"sink",
|
||||||
gst::PadDirection::Sink,
|
gst::PadDirection::Sink,
|
||||||
|
|
|
@ -34,9 +34,7 @@ impl ElementImpl for OnvifPay {
|
||||||
|
|
||||||
fn pad_templates() -> &'static [gst::PadTemplate] {
|
fn pad_templates() -> &'static [gst::PadTemplate] {
|
||||||
static PAD_TEMPLATES: Lazy<Vec<gst::PadTemplate>> = Lazy::new(|| {
|
static PAD_TEMPLATES: Lazy<Vec<gst::PadTemplate>> = Lazy::new(|| {
|
||||||
let sink_caps = gst::Caps::builder("application/x-onvif-metadata")
|
let sink_caps = gst::Caps::builder("application/x-onvif-metadata").build();
|
||||||
.field("encoding", "utf8")
|
|
||||||
.build();
|
|
||||||
let sink_pad_template = gst::PadTemplate::new(
|
let sink_pad_template = gst::PadTemplate::new(
|
||||||
"sink",
|
"sink",
|
||||||
gst::PadDirection::Sink,
|
gst::PadDirection::Sink,
|
||||||
|
|
Loading…
Reference in a new issue