mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-22 19:41:00 +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,
|
||||
Err(err) => {
|
||||
// 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);
|
||||
}
|
||||
};
|
||||
|
||||
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",
|
||||
data.len()
|
||||
data.len(),
|
||||
);
|
||||
|
||||
if unit_len > data.len() {
|
||||
|
|
Loading…
Reference in a new issue