diff subreader.c @ 913:18c43d261c35

corrected strcmp() bug, now it works again with every subs (it was broken)
author laaz
date Thu, 31 May 2001 02:07:34 +0000
parents d46de26aef48
children 6b02113cd41a
line wrap: on
line diff
--- a/subreader.c	Wed May 30 20:23:20 2001 +0000
+++ b/subreader.c	Thu May 31 02:07:34 2001 +0000
@@ -318,8 +318,10 @@
 	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;}
     }