From 15d5d271921e9c4005759ab93455339999b899aa Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Wed, 1 Mar 2006 23:34:58 +0000 Subject: - no need to convert to UTF-8 if the "from" encoding is already UTF-8 CVS patchset: 7913 CVS date: 2006/03/01 23:34:58 --- src/xine-engine/info_helper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xine-engine/info_helper.c b/src/xine-engine/info_helper.c index f33f6197a..7f356426b 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.14 2004/12/20 21:22:21 mroi Exp $ + * $Id: info_helper.c,v 1.15 2006/03/01 23:34:58 hadess Exp $ */ #ifdef HAVE_CONFIG_H @@ -205,7 +205,7 @@ static void meta_info_set_unlocked_encoding(xine_stream_t *stream, int info, con } } - if (enc) { + if (enc && strcmp(enc, "UTF-8")) { cd = iconv_open("UTF-8", enc); if (cd == (iconv_t)-1) xprintf(stream->xine, XINE_VERBOSITY_LOG, -- cgit v1.2.3