From 0379cf77c90da4ecececfc9d3379a969d8736423 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Wed, 24 May 2017 19:43:39 +0300 Subject: [PATCH] vlc_stream_ReadLine(): improve error reporting --- src/input/stream.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/input/stream.c b/src/input/stream.c index 6045f53cee..e0c70b42cc 100644 --- a/src/input/stream.c +++ b/src/input/stream.c @@ -30,6 +30,7 @@ #include #include #include +#include #include #include @@ -322,8 +323,8 @@ char *vlc_stream_ReadLine( stream_t *s ) if( vlc_iconv( priv->text.conv, &p_in, &i_in, &p_out, &i_out ) == (size_t)-1 ) { - msg_Err( s, "iconv failed" ); - msg_Dbg( s, "original: %d, in %d, out %d", i_line, (int)i_in, (int)i_out ); + msg_Err( s, "conversion error: %s", vlc_strerror_c( errno ) ); + msg_Dbg( s, "original: %d, in %zu, out %zu", i_line, i_in, i_out ); } free( p_line ); p_line = psz_new_line; -- 2.11.4.GIT