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.
This commit is contained in:
Max Kellermann
2008-08-26 08:27:07 +02:00
parent c60209ff04
commit 67bf4b448d
3 changed files with 8 additions and 1 deletions

View File

@@ -456,7 +456,7 @@ static int wavpack_streamdecode(struct decoder * decoder, InputStream *is)
* As we use dc.utf8url, this function will be bad for
* single files. utf8url is not absolute file path :/
*/
utf8url = get_song_url(tmp, dc.current_song);
utf8url = decoder_get_url(decoder, tmp);
if (utf8url == NULL) {
break;
}