[MPlayer-cvslog] r31761 - trunk/subreader.c
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Wed Jul 21 20:30:08 CEST 2010
On Wed, Jul 21, 2010 at 07:51:06PM +0200, greg wrote:
> Author: greg
> Date: Wed Jul 21 19:51:06 2010
> New Revision: 31761
>
> Log:
> subtitles: fix build without libass
>
> Conditionally use ass_enabled to unbreak build with libass support
> disabled; this problems was introduced with r31752.
> Patch by Andrew Wason, rectalogic AT rectalogic DOT com.
>
> Modified:
> trunk/subreader.c
>
> Modified: trunk/subreader.c
> ==============================================================================
> --- trunk/subreader.c Wed Jul 21 15:29:55 2010 (r31760)
> +++ trunk/subreader.c Wed Jul 21 19:51:06 2010 (r31761)
> @@ -298,10 +298,12 @@ static subtitle *sub_read_line_microdvd(
> "{%ld}{%ld}%[^\r\n]",
> &(current->start), &(current->end), line2) < 3));
>
> +#ifdef CONFIG_ASS
> if (ass_enabled) {
> subassconvert_microdvd(line2, line, LINE_LEN + 1);
> p = line;
> } else
> +#endif
> p = line2;
>
> next=p, i=0;
> @@ -433,8 +435,10 @@ static subtitle *sub_read_line_subviewer
> char *p=NULL;
> int i,len;
>
> +#ifdef CONFIG_ASS
> if (ass_enabled)
> return sub_ass_read_line_subviewer(st, current, utf16);
> +#endif
That leaves a warning behind about that function being unused.
Also could it be that some functions are incorrectly not marked as
static, because I think it should also warn about subassconvert_microdvd...
And strange, I had that change made already locally, seems I forgot to
apply...
More information about the MPlayer-cvslog
mailing list