[MPlayer-cvslog] r31519 - trunk/subreader.c
diego
subversion at mplayerhq.hu
Mon Jun 21 16:46:09 CEST 2010
Author: diego
Date: Mon Jun 21 16:46:09 2010
New Revision: 31519
Log:
Surround conditionally used orig_lines variable declaration by #ifdefs.
This avoids an unused variable warning when fribidi is not available.
Modified:
trunk/subreader.c
Modified: trunk/subreader.c
==============================================================================
--- trunk/subreader.c Mon Jun 21 16:43:08 2010 (r31518)
+++ trunk/subreader.c Mon Jun 21 16:46:09 2010 (r31519)
@@ -2302,7 +2302,9 @@ void sub_add_text(subtitle *sub, const c
int double_newline = 1; // ignore newlines at the beginning
int i, pos;
char *buf;
+#ifdef CONFIG_FRIBIDI
int orig_lines = sub->lines;
+#endif
if (sub->lines >= SUB_MAX_TEXT) return;
pos = 0;
buf = malloc(MAX_SUBLINE + 1);
More information about the MPlayer-cvslog
mailing list