Permalink
Browse files

Suppress some extended uncode characters in 608 caption debug output.

  • Loading branch information...
1 parent 6dbdc91 commit fb2be2ecdad48d4721fe10c2b25b40a87b1c5d1a @daniel-kristjansson daniel-kristjansson committed May 25, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 mythtv/libs/libmythtv/cc608decoder.cpp
@@ -684,8 +684,10 @@ QString CC608Decoder::ToASCII(const QString &cc608str, bool suppress_unknown)
if (!suppress_unknown)
ret += QString("[%1]").arg(cpu - 0x7000, 2, 16);
}
- else
+ else if (cpu >= 0x20 && cpu <= 0x80)
ret += QString(cp.toLatin1());
+ if (!suppress_unknown)
+ ret += QString("[%1]").arg(cpu - 0x7000, 2, 16);
}
}

0 comments on commit fb2be2e

Please sign in to comment.