Ticket #4122: 4122-mythtv-deaf-signing.diff

File 4122-mythtv-deaf-signing.diff, 2.2 KB (added by Nick Morrott <<knowledgejunkie [at] gmail [dot] com>>, 18 years ago)

Adds XMLTV deaf-signing support to MythTV (v1)

  • mythtv/libs/libmythtv/programinfo.h

     
    7575    SUB_UNKNOWN       = 0x00, // For backwards compatibility do not change 0 or 1
    7676    SUB_HARDHEAR      = 0x01,
    7777    SUB_NORMAL        = 0x02,
    78     SUB_ONSCREEN      = 0x04
     78    SUB_ONSCREEN      = 0x04,
     79    SUB_SIGNED        = 0x08
    7980};
    8081
    8182enum RecStatusType {
  • mythtv/libs/libmythtv/programinfo.cpp

     
    35873587        attr += QObject::tr("Subtitles Available") + ", ";
    35883588    if (subtype & SUB_ONSCREEN)
    35893589        attr += QObject::tr("Subtitled") + ", ";
     3590    if (subtype & SUB_SIGNED)
     3591        attr += QObject::tr("Deaf Signing") + ", ";
    35903592
    35913593    if (generic && category_type == "series")
    35923594        attr += QObject::tr("Unidentified Episode") + ", ";
  • mythtv/programs/mythfrontend/playbackbox.cpp

     
    923923            iconMap["onscreensub"] = SUB_ONSCREEN;
    924924            iconMap["subtitles"] = SUB_NORMAL;
    925925            iconMap["cc"] = SUB_HARDHEAR;
     926            iconMap["deafsigned"] = SUB_SIGNED;
    926927
    927928            bool havesubicon = false;
    928929
  • mythtv/programs/mythfilldatabase/xmltvparser.cpp

     
    430430            {
    431431                pginfo->subtitletype |= SUB_ONSCREEN;
    432432            }
     433            else if (info.tagName() == "subtitles" && info.attribute("type") == "deaf-signed")
     434            {
     435                pginfo->subtitletype |= SUB_SIGNED;
     436            }
    433437            else if (info.tagName() == "audio")
    434438            {
    435439                parseAudio(info, pginfo);