# HG changeset patch # User reimar # Date 1287331204 0 # Node ID 12732436bc8a71e4bdcb42773070726e124ff664 # Parent feaa8f78ed3cc9bb94c1b7f6e11e4100187766a1 More strict autodetection of RT subtitle format. Patch by Clment Bsch [ubitux gmail com]. diff -r feaa8f78ed3c -r 12732436bc8a subreader.c --- a/subreader.c Sun Oct 17 15:56:04 2010 +0000 +++ b/subreader.c Sun Oct 17 16:00:04 2010 +0000 @@ -1129,13 +1129,8 @@ {*uses_time=1;return SUB_VPLAYER;} if (sscanf (line, "%d:%d:%d ", &i, &i, &i )==3) {*uses_time=1;return SUB_VPLAYER;} - //TODO: just checking if first line of sub starts with "<" is WAY - // too weak test for RT - // Please someone who knows the format of RT... FIX IT!!! - // It may conflict with other sub formats in the future (actually it doesn't) - if ( *line == '<' ) + if (!strncasecmp(line, "