changeset 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 c50c4713ac43
children 1a5342b519fa
files subreader.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
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;}
     }