From f0c38621c1dc043a7cb3d9cb816e81213cf43197 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Mon, 8 Apr 2024 18:09:07 +1000 Subject: [PATCH] cea608overlay: also print bytes that failed to decode Part-of: --- video/closedcaption/src/cea608overlay/imp.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/video/closedcaption/src/cea608overlay/imp.rs b/video/closedcaption/src/cea608overlay/imp.rs index e0b6b9a4..eece0f4b 100644 --- a/video/closedcaption/src/cea608overlay/imp.rs +++ b/video/closedcaption/src/cea608overlay/imp.rs @@ -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) => {