[MPlayer-cvslog] r31761 - trunk/subreader.c

greg subversion at mplayerhq.hu
Wed Jul 21 19:51:06 CEST 2010


Author: greg
Date: Wed Jul 21 19:51:06 2010
New Revision: 31761

Log:
subtitles: fix build without libass

Conditionally use ass_enabled to unbreak build with libass support
disabled; this problems was introduced with r31752.
Patch by Andrew Wason, rectalogic AT rectalogic DOT com.

Modified:
   trunk/subreader.c

Modified: trunk/subreader.c
==============================================================================
--- trunk/subreader.c	Wed Jul 21 15:29:55 2010	(r31760)
+++ trunk/subreader.c	Wed Jul 21 19:51:06 2010	(r31761)
@@ -298,10 +298,12 @@ static subtitle *sub_read_line_microdvd(
 		      "{%ld}{%ld}%[^\r\n]",
 		      &(current->start), &(current->end), line2) < 3));
 
+#ifdef CONFIG_ASS
     if (ass_enabled) {
         subassconvert_microdvd(line2, line, LINE_LEN + 1);
         p = line;
     } else
+#endif
         p = line2;
 
     next=p, i=0;
@@ -433,8 +435,10 @@ static subtitle *sub_read_line_subviewer
     char *p=NULL;
     int i,len;
 
+#ifdef CONFIG_ASS
     if (ass_enabled)
         return sub_ass_read_line_subviewer(st, current, utf16);
+#endif
     while (!current->text[0]) {
 	if (!stream_read_line (st, line, LINE_LEN, utf16)) return NULL;
 	if ((len=sscanf (line, "%d:%d:%d%[,.:]%d --> %d:%d:%d%[,.:]%d",&a1,&a2,&a3,(char *)&i,&a4,&b1,&b2,&b3,(char *)&i,&b4)) < 10)


More information about the MPlayer-cvslog mailing list