From 4a012ce8b164dddc22e55b9057f9c43a058f5ac0 Mon Sep 17 00:00:00 2001 From: laaz Date: Thu, 31 May 2001 02:07:34 +0000 Subject: [PATCH] corrected strcmp() bug, now it works again with every subs (it was broken) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@914 b3059339-0415-0410-9bf9-f77b7e298cf2 --- subreader.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/subreader.c b/subreader.c index aa8760a009..f6b1ff65db 100644 --- a/subreader.c +++ b/subreader.c @@ -318,8 +318,10 @@ int sub_autodetect (FILE *fd) { if (sscanf (line, "%d:%d:%d:", &i, &i, &i )==3) {sub_uses_time=1;return 4;} //TODO: just checking if first line of sub starts with "<" is WAY - // to weak test for RT - if (strcmp("<",line)) + // 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 + if ( *line == '<' ) {sub_uses_time=1;return 5;} }