diff options
author | Michael Roitzsch <mroi@users.sourceforge.net> | 2003-08-12 13:56:51 +0000 |
---|---|---|
committer | Michael Roitzsch <mroi@users.sourceforge.net> | 2003-08-12 13:56:51 +0000 |
commit | 791fc0c3b4d9423c4284222a6e9a6f25b072a38a (patch) | |
tree | 8d9b4e88a252c1e299c1614a3dff7e038f3b8b47 /src | |
parent | eb8339e2b2719c63eeac10f3ec4df4c86d4b38ce (diff) | |
download | xine-lib-791fc0c3b4d9423c4284222a6e9a6f25b072a38a.tar.gz xine-lib-791fc0c3b4d9423c4284222a6e9a6f25b072a38a.tar.bz2 |
small code beautification
CVS patchset: 5278
CVS date: 2003/08/12 13:56:51
Diffstat (limited to 'src')
-rw-r--r-- | src/xine-engine/osd.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/xine-engine/osd.c b/src/xine-engine/osd.c index f7e7c3e1d..87b2c7b70 100644 --- a/src/xine-engine/osd.c +++ b/src/xine-engine/osd.c @@ -784,7 +784,7 @@ static int osd_render_text (osd_object_t *osd, int x1, int y1, if( x1 < osd->x1 ) osd->x1 = x1; if( y1 < osd->y1 ) osd->y1 = y1; - inbuf = (char *)text; + inbuf = text; inbytesleft = strlen(text); if (!encoding) { @@ -819,7 +819,9 @@ static int osd_render_text (osd_object_t *osd, int x1, int y1, inbytesleft--; } else { /* get unicode value from iconv */ - count = iconv(cd, &inbuf, &inbytesleft, &outbuf, &outbytesleft); + /* FIXME: we cast away the const from inbuf; Why is iconv() not const here, + * does it change inbuf? */ + count = iconv(cd, (char **)&inbuf, &inbytesleft, &outbuf, &outbytesleft); if (count == (size_t)-1 && errno != E2BIG) { /* unknown character or character wider than 16 bits, try skip one byte */ printf(_("osd: unknown sequence starting with byte 0x%02X" |