aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/wavpack_decoder_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-01-18 10:21:57 +0100
committerMax Kellermann <max@duempel.org>2010-01-18 10:21:57 +0100
commitca1fc13116cbac10711455b4e57e242b967c6f6e (patch)
tree35b734bbb1ada8fc04f8c1562d08ecc68636308d /src/decoder/wavpack_decoder_plugin.c
parent9cb7760c5eb63cb6b7034ec9d2cdf9af2f198652 (diff)
downloadmpd-ca1fc13116cbac10711455b4e57e242b967c6f6e.tar.gz
mpd-ca1fc13116cbac10711455b4e57e242b967c6f6e.tar.xz
mpd-ca1fc13116cbac10711455b4e57e242b967c6f6e.zip
decoder_api: removed function decoder_get_uri()
Use input_stream.uri.
Diffstat (limited to 'src/decoder/wavpack_decoder_plugin.c')
-rw-r--r--src/decoder/wavpack_decoder_plugin.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/decoder/wavpack_decoder_plugin.c b/src/decoder/wavpack_decoder_plugin.c
index 380985f85..a037688fc 100644
--- a/src/decoder/wavpack_decoder_plugin.c
+++ b/src/decoder/wavpack_decoder_plugin.c
@@ -466,7 +466,6 @@ static struct input_stream *
wavpack_open_wvc(struct decoder *decoder, struct wavpack_input *wpi)
{
struct input_stream *is_wvc;
- char *utf8url;
char *wvc_url = NULL;
char first_byte;
size_t nbytes;
@@ -475,14 +474,10 @@ wavpack_open_wvc(struct decoder *decoder, struct wavpack_input *wpi)
* As we use dc->utf8url, this function will be bad for
* single files. utf8url is not absolute file path :/
*/
- utf8url = decoder_get_uri(decoder);
- if (utf8url == NULL) {
+ if (wpi->is->uri == NULL)
return false;
- }
-
- wvc_url = g_strconcat(utf8url, "c", NULL);
- g_free(utf8url);
+ wvc_url = g_strconcat(wpi->is->uri, "c", NULL);
is_wvc = input_stream_open(wvc_url, NULL);
g_free(wvc_url);