diff options
author | František Dvořák <valtri@users.sourceforge.net> | 2006-09-12 21:24:18 +0000 |
---|---|---|
committer | František Dvořák <valtri@users.sourceforge.net> | 2006-09-12 21:24:18 +0000 |
commit | d466d6a39f785c44a09adf3fc58b5a425c63f33b (patch) | |
tree | e24919f69ac661aeb3fd14b2439a84d88abaef74 /src/xine-engine/info_helper.c | |
parent | a065c7dc482ea280d7f30f23626171a8303ec488 (diff) | |
download | xine-lib-d466d6a39f785c44a09adf3fc58b5a425c63f33b.tar.gz xine-lib-d466d6a39f785c44a09adf3fc58b5a425c63f33b.tar.bz2 |
Fixed iconv warnings on FreeBSD, fixed build w/o iconv but require it as default.
CVS patchset: 8223
CVS date: 2006/09/12 21:24:18
Diffstat (limited to 'src/xine-engine/info_helper.c')
-rw-r--r-- | src/xine-engine/info_helper.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/xine-engine/info_helper.c b/src/xine-engine/info_helper.c index 799e5fd00..c7a493382 100644 --- a/src/xine-engine/info_helper.c +++ b/src/xine-engine/info_helper.c @@ -20,7 +20,7 @@ * stream metainfo helper functions * hide some xine engine details from demuxers and reduce code duplication * - * $Id: info_helper.c,v 1.16 2006/03/03 12:59:31 hadess Exp $ + * $Id: info_helper.c,v 1.17 2006/09/12 21:24:21 valtri Exp $ */ #ifdef HAVE_CONFIG_H @@ -193,14 +193,14 @@ static int meta_info_validate_utf8 (const char *value) { iconv_t cd; char *utf8_value; - char *inbuf, *outbuf; + ICONV_CONST char *inbuf, *outbuf; size_t inbytesleft, outbytesleft; if ((cd = iconv_open("UTF-8", "UTF-8")) == (iconv_t)-1) { return 0; } - inbuf = (char *)value; + inbuf = (ICONV_CONST char *)value; inbytesleft = strlen(value); outbytesleft = 4 * inbytesleft; /* estimative (max) */ outbuf = utf8_value = malloc(outbytesleft+1); @@ -247,10 +247,11 @@ static void meta_info_set_unlocked_encoding(xine_stream_t *stream, int info, con if (cd != (iconv_t)-1) { char *utf8_value; - char *inbuf, *outbuf; + ICONV_CONST char *inbuf; + char *outbuf; size_t inbytesleft, outbytesleft; - inbuf = (char *)value; + inbuf = (ICONV_CONST char *)value; inbytesleft = strlen(value); outbytesleft = 4 * inbytesleft; /* estimative (max) */ outbuf = utf8_value = malloc(outbytesleft+1); |