0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

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:
diego 2010-06-21 14:46:09 +00:00 committed by Uoti Urpala
parent 262dde35ff
commit d09cc29578

View File

@ -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 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);