From 7298ebaa6106435c60d5124eaf237af3dda1e16e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Mon, 6 Nov 2006 18:24:59 +0000 Subject: [PATCH] gst-libs/gst/audio/: Use g_strerror instead of strerror so we get UTF-8. Original commit message from CVS: * gst-libs/gst/audio/gstaudiosink.c: (audioringbuffer_thread_func): * gst-libs/gst/audio/gstaudiosrc.c: (audioringbuffer_thread_func): Use g_strerror instead of strerror so we get UTF-8. --- ChangeLog | 6 ++++++ gst-libs/gst/audio/gstaudiosink.c | 4 ++-- gst-libs/gst/audio/gstaudiosrc.c | 4 ++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index d7a13ced77..03ea3ea979 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-11-06 Tim-Philipp Müller + + * gst-libs/gst/audio/gstaudiosink.c: (audioringbuffer_thread_func): + * gst-libs/gst/audio/gstaudiosrc.c: (audioringbuffer_thread_func): + Use g_strerror instead of strerror so we get UTF-8. + 2006-11-03 David Schleef * ext/ogg/gstoggdemux.c: diff --git a/gst-libs/gst/audio/gstaudiosink.c b/gst-libs/gst/audio/gstaudiosink.c index e3c8d282ea..2755cde405 100644 --- a/gst-libs/gst/audio/gstaudiosink.c +++ b/gst-libs/gst/audio/gstaudiosink.c @@ -227,8 +227,8 @@ audioringbuffer_thread_func (GstRingBuffer * buf) GST_LOG ("transfered %d bytes of %d from segment %d", written, left, readseg); if (written < 0 || written > left) { - GST_WARNING ("error writing data (reason: %s), skipping segment\n", - strerror (errno)); + GST_WARNING ("error writing data (reason: %s), skipping segment", + g_strerror (errno)); break; } left -= written; diff --git a/gst-libs/gst/audio/gstaudiosrc.c b/gst-libs/gst/audio/gstaudiosrc.c index adc1704fb1..55a6f69aaf 100644 --- a/gst-libs/gst/audio/gstaudiosrc.c +++ b/gst-libs/gst/audio/gstaudiosrc.c @@ -223,8 +223,8 @@ audioringbuffer_thread_func (GstRingBuffer * buf) read = readfunc (src, readptr + read, left); GST_DEBUG ("transfered %d bytes", read); if (read < 0 || read > left) { - GST_WARNING ("error reading data (reason: %s), skipping segment\n", - strerror (errno)); + GST_WARNING ("error reading data (reason: %s), skipping segment", + g_strerror (errno)); break; } left -= read;