From 01ef35eac8578caeefcf3e1a7920b3af25af6d7b Mon Sep 17 00:00:00 2001
From: Matthew Waters <matthew@centricular.com>
Date: Wed, 4 Dec 2024 21:45:18 +1100
Subject: [PATCH] cea708overlay: enable a black background by default

It is the recommended colour sceheme in CEA-608.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1942>
---
 video/closedcaption/src/cea708utils.rs | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/video/closedcaption/src/cea708utils.rs b/video/closedcaption/src/cea708utils.rs
index d7014d68..6b2fc8fc 100644
--- a/video/closedcaption/src/cea708utils.rs
+++ b/video/closedcaption/src/cea708utils.rs
@@ -313,9 +313,11 @@ pub struct Cea708Renderer {
 
 impl Cea708Renderer {
     pub fn new() -> Self {
+        let mut cea608 = Cea608Renderer::new();
+        cea608.set_black_background(true);
         Self {
             selected: None,
-            cea608: Cea608Renderer::new(),
+            cea608,
             service: None,
             video_width: 0,
             video_height: 0,