diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-05-08 22:15:32 +0300 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-05-08 22:15:32 +0300 |
commit | 33efcaf1579cd09641f606971d5419a1fdb3bcf0 (patch) | |
tree | a7234deb3d6c1cea6916c6f6885cff1513adef23 /subreader.c | |
parent | dc1a1b8d9f307c81a1e3b24b03e331417792e019 (diff) | |
download | mpv-33efcaf1579cd09641f606971d5419a1fdb3bcf0.tar.bz2 mpv-33efcaf1579cd09641f606971d5419a1fdb3bcf0.tar.xz |
subreader.c: fix fribidi variable type
Use FriBidiParType instead of FriBidiCharType for a variable used as
the third argument of fribidi_log2vis().
Diffstat (limited to 'subreader.c')
-rw-r--r-- | subreader.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/subreader.c b/subreader.c index a972cdb874..7465cb0e35 100644 --- a/subreader.c +++ b/subreader.c @@ -1172,7 +1172,6 @@ static subtitle* sub_fribidi (subtitle *sub, int sub_utf8, int from) { FriBidiChar logical[LINE_LEN+1], visual[LINE_LEN+1]; // Hopefully these two won't smash the stack char *ip = NULL, *op = NULL; - FriBidiCharType base; size_t len,orig_len; int l=sub->lines; int char_set_num; @@ -1196,7 +1195,7 @@ static subtitle* sub_fribidi (subtitle *sub, int sub_utf8, int from) break; } len = fribidi_charset_to_unicode (char_set_num, ip, len, logical); - base = fribidi_flip_commas?FRIBIDI_TYPE_ON:FRIBIDI_TYPE_L; + FriBidiParType base = fribidi_flip_commas?FRIBIDI_TYPE_ON:FRIBIDI_TYPE_L; log2vis = fribidi_log2vis (logical, len, &base, /* output */ visual, NULL, NULL, NULL); |