[dvblast-devel] avoid respawning iconv all the time

Christophe Massiot git at videolan.org
Thu Apr 9 20:27:19 CEST 2015


dvblast | branch: master | Christophe Massiot <cmassiot at openheadend.tv> | Thu Apr  9 20:27:06 2015 +0200| [ebbd1f81f08d3b67498b95de06e03ac2bd252ed6] | committer: Christophe Massiot

avoid respawning iconv all the time

> http://git.videolan.org/gitweb.cgi/dvblast.git/?a=commit;h=ebbd1f81f08d3b67498b95de06e03ac2bd252ed6
---

 demux.c      |    1 +
 dvblastctl.c |    1 +
 2 files changed, 2 insertions(+)

diff --git a/demux.c b/demux.c
index 83e5336..0561601 100644
--- a/demux.c
+++ b/demux.c
@@ -1939,6 +1939,7 @@ char *demux_Iconv(void *_unused, const char *psz_encoding,
                 psz_native_charset);
         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;
diff --git a/dvblastctl.c b/dvblastctl.c
index c4df1ea..378cb47 100644
--- a/dvblastctl.c
+++ b/dvblastctl.c
@@ -142,6 +142,7 @@ char *psi_iconv(void *_unused, const char *psz_encoding,
                 psz_native_charset);
         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;



More information about the dvblast-devel mailing list