comparison subreader.c @ 31453:91b713df588f

Surround conditionally used orig_lines variable declaration by #ifdefs. This avoids an unused variable warning when fribidi is not available.
author diego
date Mon, 21 Jun 2010 14:46:09 +0000
parents 17db8e56de4c
children dc26022e9c27
comparison
equal deleted inserted replaced
31452:435530ed1a33 31453:91b713df588f
2300 void sub_add_text(subtitle *sub, const char *txt, int len, double endpts) { 2300 void sub_add_text(subtitle *sub, const char *txt, int len, double endpts) {
2301 int comment = 0; 2301 int comment = 0;
2302 int double_newline = 1; // ignore newlines at the beginning 2302 int double_newline = 1; // ignore newlines at the beginning
2303 int i, pos; 2303 int i, pos;
2304 char *buf; 2304 char *buf;
2305 #ifdef CONFIG_FRIBIDI
2305 int orig_lines = sub->lines; 2306 int orig_lines = sub->lines;
2307 #endif
2306 if (sub->lines >= SUB_MAX_TEXT) return; 2308 if (sub->lines >= SUB_MAX_TEXT) return;
2307 pos = 0; 2309 pos = 0;
2308 buf = malloc(MAX_SUBLINE + 1); 2310 buf = malloc(MAX_SUBLINE + 1);
2309 sub->text[sub->lines] = buf; 2311 sub->text[sub->lines] = buf;
2310 sub->endpts[sub->lines] = endpts; 2312 sub->endpts[sub->lines] = endpts;