diff options
author | Max Kellermann <max@duempel.org> | 2010-01-18 10:21:57 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2010-01-18 10:21:57 +0100 |
commit | ca1fc13116cbac10711455b4e57e242b967c6f6e (patch) | |
tree | 35b734bbb1ada8fc04f8c1562d08ecc68636308d /src/decoder/wavpack_decoder_plugin.c | |
parent | 9cb7760c5eb63cb6b7034ec9d2cdf9af2f198652 (diff) | |
download | mpd-ca1fc13116cbac10711455b4e57e242b967c6f6e.tar.gz mpd-ca1fc13116cbac10711455b4e57e242b967c6f6e.tar.xz mpd-ca1fc13116cbac10711455b4e57e242b967c6f6e.zip |
decoder_api: removed function decoder_get_uri()
Use input_stream.uri.
Diffstat (limited to '')
-rw-r--r-- | src/decoder/wavpack_decoder_plugin.c | 9 |
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); |