Ticket #9569: caption-per-character.patch

File caption-per-character.patch, 1.9 KB (added by Clayton Smith <argilo@…>, 13 years ago)
  • mythtv/libs/libmythtv/cc708decoder.cpp

    diff --git a/mythtv/libs/libmythtv/cc708decoder.cpp b/mythtv/libs/libmythtv/cc708decoder.cpp
    index 9dc6e32..2b8e865 100644
    a b static void parse_cc_service_stream(CC708Reader* cc, uint service_num) 
    178178            short character = CCtableG0[code-0x20];
    179179            append_character(cc, service_num, character);
    180180            i++;
     181            SEND_STR;
    181182        }
    182183        else if (code <= 0x9f)
    183184        {
  • mythtv/libs/libmythtv/cc708window.cpp

    diff --git a/mythtv/libs/libmythtv/cc708window.cpp b/mythtv/libs/libmythtv/cc708window.cpp
    index 999ed23..30ae750 100644
    a b void CC708Window::SetWindowStyle(uint style) 
    332332    // It appears that ths is missused by broadcasters (FOX -- Dollhouse)
    333333    fill_opacity   = k708AttrOpacityTransparent;
    334334    /// HACK -- end
     335    changed = true;
    335336}
    336337
    337338void CC708Window::AddChar(QChar ch)
    void CC708Window::AddChar(QChar ch) 
    355356    if (ch.toAscii() == 0x0D)
    356357    {
    357358        Scroll(pen.row + 1, 0);
     359        changed = true;
    358360        return;
    359361    }
    360362
    void CC708Window::AddChar(QChar ch) 
    363365        DecrPenLocation();
    364366        GetCCChar().attr      = pen.attr;
    365367        GetCCChar().character = QChar(' ');
     368        changed = true;
    366369        return;
    367370    }
    368371
    void CC708Window::AddChar(QChar ch) 
    379382    int c = pen.column;
    380383    int r = pen.row;
    381384    IncrPenLocation();
     385    changed = true;
    382386
    383387    VERBOSE(VB_VBI, QString("AddChar(%1) at (c %2, r %3) -> (%4,%5)")
    384388            .arg(dbg_char).arg(c).arg(r).arg(pen.column).arg(pen.row));
    void CC708Window::Scroll(int row, int col) 
    406410            text[(true_column_count * (true_row_count - 1)) + i] = tmp;
    407411
    408412        pen.row = true_row_count - 1;
     413        changed = true;
    409414    }
    410415    else
    411416    {