[vlc-commits] stream_ReadLine: properly reset text encoding parameters
Pierre Ynard
git at videolan.org
Sat Oct 3 12:07:44 CEST 2020
vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Sat Oct 3 12:05:05 2020 +0200| [097f4e01696f55ae2497cfe32063e6741b7888f8] | 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.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=097f4e01696f55ae2497cfe32063e6741b7888f8
---
src/input/stream.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/input/stream.c b/src/input/stream.c
index b7196894ea..90651de058 100644
--- a/src/input/stream.c
+++ b/src/input/stream.c
@@ -217,6 +217,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