aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputPlugins/wavpack_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-04-12 04:15:16 +0000
committerEric Wong <normalperson@yhbt.net>2008-04-12 04:15:16 +0000
commit2ede0780f66ce0064c625e4611b29e2400467303 (patch)
tree14cb838cd511076fd1b91bb3594649a26fb5d700 /src/inputPlugins/wavpack_plugin.c
parenta5aa5a0258fa7cf961536df46375b8f0b1d7b84e (diff)
downloadmpd-2ede0780f66ce0064c625e4611b29e2400467303.tar.gz
mpd-2ede0780f66ce0064c625e4611b29e2400467303.tar.xz
mpd-2ede0780f66ce0064c625e4611b29e2400467303.zip
fix compilation error in wavpack plugin
The patch "Start using song pointers in core data structures" removed dc->utf8url, and the adaption for wavpack_plugin.c was missing. git-svn-id: https://svn.musicpd.org/mpd/trunk@7288 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/inputPlugins/wavpack_plugin.c')
-rw-r--r--src/inputPlugins/wavpack_plugin.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/inputPlugins/wavpack_plugin.c b/src/inputPlugins/wavpack_plugin.c
index 37dc4f3d0..527e60a56 100644
--- a/src/inputPlugins/wavpack_plugin.c
+++ b/src/inputPlugins/wavpack_plugin.c
@@ -453,6 +453,8 @@ static int wavpack_streamdecode(OutputBuffer *cb, DecoderControl *dc,
/* Try to find wvc */
do {
+ char tmp[MPD_PATH_MAX];
+ const char *utf8url;
size_t len;
err = 1;
@@ -460,11 +462,12 @@ static int wavpack_streamdecode(OutputBuffer *cb, DecoderControl *dc,
* As we use dc->utf8url, this function will be bad for
* single files. utf8url is not absolute file path :/
*/
- if (dc->utf8url == NULL) {
+ utf8url = get_song_url(tmp, getPlayerData()->playerControl.current_song);
+ if (utf8url == NULL) {
break;
}
- len = strlen(dc->utf8url);
+ len = strlen(utf8url);
if (!len) {
break;
}
@@ -474,7 +477,7 @@ static int wavpack_streamdecode(OutputBuffer *cb, DecoderControl *dc,
break;
}
- memcpy(wvc_url, dc->utf8url, len);
+ memcpy(wvc_url, utf8url, len);
wvc_url[len] = 'c';
wvc_url[len + 1] = '\0';