aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder_api.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-26 08:27:07 +0200
committerMax Kellermann <max@duempel.org>2008-08-26 08:27:07 +0200
commit67bf4b448dad25f2f0c60451f53fcacb0a0bde15 (patch)
tree374ce955b4a26cc927f82d8ab5a5f92b11288f20 /src/decoder_api.c
parentc60209ff04e51a1ea95b489d411469712e776d3a (diff)
downloadmpd-67bf4b448dad25f2f0c60451f53fcacb0a0bde15.tar.gz
mpd-67bf4b448dad25f2f0c60451f53fcacb0a0bde15.tar.xz
mpd-67bf4b448dad25f2f0c60451f53fcacb0a0bde15.zip
added decoder_get_url()
The wavpack decoder plugin implements a hack, and it needs the song URL for that. This API (and the hack) should be revised later, but add that function for now.
Diffstat (limited to 'src/decoder_api.c')
-rw-r--r--src/decoder_api.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/decoder_api.c b/src/decoder_api.c
index 5d5763b1f..2009733ad 100644
--- a/src/decoder_api.c
+++ b/src/decoder_api.c
@@ -45,6 +45,11 @@ void decoder_initialized(struct decoder * decoder,
notify_signal(&pc.notify);
}
+const char *decoder_get_url(mpd_unused struct decoder * decoder, char * buffer)
+{
+ return get_song_url(buffer, dc.current_song);
+}
+
enum decoder_command decoder_get_command(mpd_unused struct decoder * decoder)
{
return dc.command;