summaryrefslogtreecommitdiffstats
path: root/subreader.c
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-06-21 14:46:09 +0000
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-11-02 04:11:07 +0200
commitd09cc295785be55032532231f65b9c73eaf4a8ed (patch)
tree6f89b865236d8dce2dfb2b2f901cea1f068a3a5a /subreader.c
parent262dde35ffea591ac1ca852e1d33c75597c5116e (diff)
downloadmpv-d09cc295785be55032532231f65b9c73eaf4a8ed.tar.bz2
mpv-d09cc295785be55032532231f65b9c73eaf4a8ed.tar.xz
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
Diffstat (limited to 'subreader.c')
-rw-r--r--subreader.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/subreader.c b/subreader.c
index 63fed5d156..772d58c79c 100644
--- a/subreader.c
+++ b/subreader.c
@@ -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);