cea608overlay: also print bytes that failed to decode

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1519>
This commit is contained in:
Matthew Waters 2024-04-08 18:09:07 +10:00 committed by GStreamer Marge Bot
parent a3e30b499f
commit f0c38621c1

View file

@ -161,7 +161,7 @@ impl Cea608Overlay {
};
match state.renderer.push_pair([triple[1], triple[2]]) {
Err(e) => {
gst::warning!(CAT, imp: self, "Failed to parse incoming CEA-608: {e:?}");
gst::warning!(CAT, imp: self, "Failed to parse incoming CEA-608 ({:x?}): {e:?}", [triple[1], triple[2]]);
continue;
}
Ok(true) => {
@ -196,7 +196,7 @@ impl Cea608Overlay {
};
match state.renderer.push_pair([triple[1], triple[2]]) {
Err(e) => {
gst::warning!(CAT, imp: self, "Failed to parse incoming CEA-608: {e:?}");
gst::warning!(CAT, imp: self, "Failed to parse incoming CEA-608 ({:x?}): {e:?}", [triple[1], triple[2]]);
continue;
}
Ok(true) => {
@ -253,7 +253,7 @@ impl Cea608Overlay {
for pair in data.chunks_exact(2) {
match state.renderer.push_pair([pair[0], pair[1]]) {
Err(e) => {
gst::warning!(CAT, imp: self, "Failed to parse incoming CEA-608: {e:?}");
gst::warning!(CAT, imp: self, "Failed to parse incoming CEA-608 ({:x?}): {e:?}", [pair[0], pair[1]]);
continue;
}
Ok(true) => {