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
This commit is contained in:
@@ -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; \
|
||||
} \
|
||||
|
Reference in New Issue
Block a user