[vlc-commits] stream_ReadLine: properly reset text encoding parameters

Pierre Ynard git at videolan.org
Sat Oct 3 12:13:37 CEST 2020


vlc/vlc-3.0 | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Sat Oct  3 12:05:05 2020 +0200| [e94d1d752c328b2d7ea4a31212461529a0d9f615] | committer: Pierre Ynard

stream_ReadLine: properly reset text encoding parameters

Only the iconv handle was correctly reset, potentially leading again to
wrong or inconsistent parameters.

(cherry picked from commit 097f4e01696f55ae2497cfe32063e6741b7888f8)
Signed-off-by: Pierre Ynard <linkfanel at yahoo.fr>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=e94d1d752c328b2d7ea4a31212461529a0d9f615
---

 src/input/stream.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/input/stream.c b/src/input/stream.c
index 929666fc69..bc8cc221df 100644
--- a/src/input/stream.c
+++ b/src/input/stream.c
@@ -202,6 +202,8 @@ char *vlc_stream_ReadLine( stream_t *s )
                 vlc_iconv_close( priv->text.conv );
                 priv->text.conv = (vlc_iconv_t)-1;
             }
+            priv->text.char_width = 1;
+            priv->text.little_endian = false;
 
             if( !memcmp( p_data, "\xFF\xFE", 2 ) )
             {



More information about the vlc-commits mailing list