# HG changeset patch # User reimar # Date 1312022618 0 # Node ID 3b2c18ccfda2e1825c27f8e593419e46c5bfe906 # Parent ebc24527c63f152cdeb13f76e30a5337914f8904 Change code so that it compiles more reliably without libass instead of relying on compiler optimization. diff -r ebc24527c63f -r 3b2c18ccfda2 sub/subreader.c --- a/sub/subreader.c Sat Jul 30 10:29:14 2011 +0000 +++ b/sub/subreader.c Sat Jul 30 10:43:38 2011 +0000 @@ -2515,15 +2515,16 @@ sub->text[sub->lines] = buf; sub->endpts[sub->lines] = endpts; -#ifndef CONFIG_ASS - if (!strip_markup) - mp_msg(MSGT_SUBREADER, MSGL_ERR, "strip_markup must be set when ASS support is disabled!\n"); - strip_markup = 1; -#endif if (!strip_markup) { +#ifdef CONFIG_ASS subassconvert_subrip(txt, buf, MAX_SUBLINE + 1); sub->text[sub->lines] = buf; - } else { +#else + mp_msg(MSGT_SUBREADER, MSGL_ERR, "strip_markup must be set when ASS support is disabled!\n"); + strip_markup = 1; +#endif + } + if (strip_markup) { for (i = 0; i < len && pos < MAX_SUBLINE; i++) { char c = txt[i]; if (c == '<') comment |= 1;