From 919e5951a4bf874181870e9828a1e65d1211f63f Mon Sep 17 00:00:00 2001 From: Christophe Massiot Date: Thu, 9 Apr 2015 20:04:09 +0200 Subject: [PATCH] avoid respawning iconv all the time --- examples/dvb_print_si.c | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/dvb_print_si.c b/examples/dvb_print_si.c index bbf4cb1..a2583be 100644 --- a/examples/dvb_print_si.c +++ b/examples/dvb_print_si.c @@ -163,6 +163,7 @@ static char *iconv_wrapper(void *_unused, const char *psz_encoding, psz_native_encoding); return iconv_append_null(p_string, i_length); } + psz_current_encoding = psz_encoding; /* converted strings can be up to six times larger */ i_out_length = i_length * 6;