mirror of https://github.com/mpv-player/mpv
subreader.c: place conditionally declaration under #ifdef
Surround conditionally used orig_lines variable declaration by #ifdefs. This avoids an unused variable warning when fribidi is not available. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31519 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
262dde35ff
commit
d09cc29578
|
@ -2315,7 +2315,9 @@ void sub_add_text(subtitle *sub, const char *txt, int len, double endpts) {
|
||||||
int double_newline = 1; // ignore newlines at the beginning
|
int double_newline = 1; // ignore newlines at the beginning
|
||||||
int i, pos;
|
int i, pos;
|
||||||
char *buf;
|
char *buf;
|
||||||
|
#ifdef CONFIG_FRIBIDI
|
||||||
int orig_lines = sub->lines;
|
int orig_lines = sub->lines;
|
||||||
|
#endif
|
||||||
if (sub->lines >= SUB_MAX_TEXT) return;
|
if (sub->lines >= SUB_MAX_TEXT) return;
|
||||||
pos = 0;
|
pos = 0;
|
||||||
buf = malloc(MAX_SUBLINE + 1);
|
buf = malloc(MAX_SUBLINE + 1);
|
||||||
|
|
Loading…
Reference in New Issue