Mercurial > mplayer.hg
view osdep/ftello.c @ 23212:c932f521344d
In ass_font_new, allocate temporary ass_font_t on stack and return the pointer
to cache-owned copy. This fixes leaked ass_font_t struct.
Without this, font pointers obtained from ass_font_new() and
ass_font_cache_find() were different, and bitmaps rendered with the first one
could not be located in the cache later.
author | eugeni |
---|---|
date | Thu, 03 May 2007 19:26:43 +0000 |
parents | e268886eb13d |
children |
line wrap: on
line source
/* * ftello.c * 64-bit version of ftello() for systems which do not have it */ #include "config.h" #include <stdio.h> #include <sys/types.h> off_t ftello(FILE *stream) { fpos_t floc; if (fgetpos(stream, &floc) != 0) return -1; return floc; }