aboutsummaryrefslogtreecommitdiffstats
path: root/src/decode.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-07-12 17:00:49 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-07-12 17:00:49 +0000
commitcc38f07983887a30c2a8c9b6ec7eaffc77ecf121 (patch)
treeb9c48e2cc80c93f86d516d7eb3def68d605e97b2 /src/decode.c
parenta03466016a80a85d3994480e621f1fc3b51929b7 (diff)
downloadmpd-cc38f07983887a30c2a8c9b6ec7eaffc77ecf121.tar.gz
mpd-cc38f07983887a30c2a8c9b6ec7eaffc77ecf121.tar.xz
mpd-cc38f07983887a30c2a8c9b6ec7eaffc77ecf121.zip
report error to error log when unable to open audio device
git-svn-id: https://svn.musicpd.org/mpd/trunk@1852 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/decode.c')
-rw-r--r--src/decode.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/decode.c b/src/decode.c
index c42d130d6..6034c141b 100644
--- a/src/decode.c
+++ b/src/decode.c
@@ -115,6 +115,7 @@ int calculateCrossFadeChunks(PlayerControl * pc, AudioFormat * af) {
MAXPATHLEN); \
pc->erroredUrl[MAXPATHLEN] = '\0'; \
pc->error = PLAYER_ERROR_AUDIO; \
+ ERROR("problems opeing audio device while playing \"%s\"", pc->utf8url); \
quitDecode(pc,dc); \
return; \
} \
@@ -227,6 +228,7 @@ int decodeSeek(PlayerControl * pc, DecoderControl * dc, OutputBuffer * cb,
MAXPATHLEN); \
pc->erroredUrl[MAXPATHLEN] = '\0'; \
pc->error = PLAYER_ERROR_AUDIO; \
+ ERROR("problems opeing audio device while playing \"%s\"", pc->utf8url); \
quitDecode(pc,dc); \
return; \
} \