mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-02-16 21:05:15 +00:00
fixup: klv payloader indentation
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1580>
This commit is contained in:
parent
c2f67bd3c9
commit
1e33926dc5
1 changed files with 9 additions and 3 deletions
|
@ -152,15 +152,21 @@ impl RtpBasePay2Impl for RtpKlvPay {
|
||||||
Ok(unit_len) => unit_len,
|
Ok(unit_len) => unit_len,
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
// Also post warning message?
|
// Also post warning message?
|
||||||
gst::warning!(CAT, imp: self, "Input doesn't look like a KLV unit, ignoring. {err:?}");
|
gst::warning!(
|
||||||
|
CAT,
|
||||||
|
imp: self,
|
||||||
|
"Input doesn't look like a KLV unit, ignoring. {err:?}",
|
||||||
|
);
|
||||||
return Ok(gst::FlowSuccess::Ok);
|
return Ok(gst::FlowSuccess::Ok);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
if unit_len != data.len() {
|
if unit_len != data.len() {
|
||||||
gst::error!(CAT, imp: self,
|
gst::error!(
|
||||||
|
CAT,
|
||||||
|
imp: self,
|
||||||
"Input is not properly framed: KLV unit of size {unit_len} but buffer is {} bytes",
|
"Input is not properly framed: KLV unit of size {unit_len} but buffer is {} bytes",
|
||||||
data.len()
|
data.len(),
|
||||||
);
|
);
|
||||||
|
|
||||||
if unit_len > data.len() {
|
if unit_len > data.len() {
|
||||||
|
|
Loading…
Reference in a new issue