Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

CEA 708 Captions: Update the window for each new character.

This ensures text updates are as expected and not when a line is
completed.

Patch from and thanks to Clayton Smith.
  • Loading branch information...
commit f1bc0b5ddf2b05477c5a29b9595092949961004c 1 parent f1eb5e7
Mark Kendall authored
View
1  mythtv/libs/libmythtv/cc708decoder.cpp
@@ -178,6 +178,7 @@ static void parse_cc_service_stream(CC708Reader* cc, uint service_num)
short character = CCtableG0[code-0x20];
append_character(cc, service_num, character);
i++;
+ SEND_STR;
}
else if (code <= 0x9f)
{
View
5 mythtv/libs/libmythtv/cc708window.cpp
@@ -332,6 +332,7 @@ void CC708Window::SetWindowStyle(uint style)
// It appears that ths is missused by broadcasters (FOX -- Dollhouse)
fill_opacity = k708AttrOpacityTransparent;
/// HACK -- end
+ changed = true;
}
void CC708Window::AddChar(QChar ch)
@@ -355,6 +356,7 @@ void CC708Window::AddChar(QChar ch)
if (ch.toAscii() == 0x0D)
{
Scroll(pen.row + 1, 0);
+ changed = true;
return;
}
@@ -363,6 +365,7 @@ void CC708Window::AddChar(QChar ch)
DecrPenLocation();
GetCCChar().attr = pen.attr;
GetCCChar().character = QChar(' ');
+ changed = true;
return;
}
@@ -379,6 +382,7 @@ void CC708Window::AddChar(QChar ch)
int c = pen.column;
int r = pen.row;
IncrPenLocation();
+ changed = true;
VERBOSE(VB_VBI, QString("AddChar(%1) at (c %2, r %3) -> (%4,%5)")
.arg(dbg_char).arg(c).arg(r).arg(pen.column).arg(pen.row));
@@ -406,6 +410,7 @@ void CC708Window::Scroll(int row, int col)
text[(true_column_count * (true_row_count - 1)) + i] = tmp;
pen.row = true_row_count - 1;
+ changed = true;
}
else
{
Please sign in to comment.
Something went wrong with that request. Please try again.