aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputPlugins
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-10-02 03:24:21 -0700
committerEric Wong <normalperson@yhbt.net>2008-10-02 03:24:21 -0700
commitbf402578ab5bd9bc35bb5539d381d5612d19d40b (patch)
tree9dfa45ebb1cea9e96b9b598bb5e89eeaa24a0ae0 /src/inputPlugins
parentfcbcdd9869e3147fe4a30ba808af294f680c9373 (diff)
downloadmpd-bf402578ab5bd9bc35bb5539d381d5612d19d40b.tar.gz
mpd-bf402578ab5bd9bc35bb5539d381d5612d19d40b.tar.xz
mpd-bf402578ab5bd9bc35bb5539d381d5612d19d40b.zip
Revert "Start using song pointers in core data structures"
This actually opened us up to making lock dependencies more difficult than they needed to be now that we have threaded updates. We would always use the memory anyways, just in the stack instead of bss.
Diffstat (limited to 'src/inputPlugins')
-rw-r--r--src/inputPlugins/wavpack_plugin.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/inputPlugins/wavpack_plugin.c b/src/inputPlugins/wavpack_plugin.c
index 8bba8ae2b..b6da51e5e 100644
--- a/src/inputPlugins/wavpack_plugin.c
+++ b/src/inputPlugins/wavpack_plugin.c
@@ -429,10 +429,8 @@ static int wavpack_open_wvc(InputStream *is_wvc)
char wvc_url[MPD_PATH_MAX];
size_t len;
- /* This is the only reader of dc.current_song */
- if (!get_song_url(wvc_url, dc.current_song))
- return 0;
-
+ /* This is the only reader of dc.utf8url (in inputPlugins) */
+ pathcpy_trunc(wvc_url, dc.utf8url);
len = strlen(wvc_url);
if ((len + 2) >= MPD_PATH_MAX)
return 0;