vlc | branch: master | Rémi Denis-Courmont <[email protected]> | Wed May 24 19:43:39 2017 +0300| [0379cf77c90da4ecececfc9d3379a969d8736423] | committer: Rémi Denis-Courmont
vlc_stream_ReadLine(): improve error reporting > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0379cf77c90da4ecececfc9d3379a969d8736423 --- 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 <stdlib.h> #include <string.h> #include <limits.h> +#include <errno.h> #include <vlc_common.h> #include <vlc_block.h> @@ -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; _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
