From ca1fc13116cbac10711455b4e57e242b967c6f6e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 18 Jan 2010 10:21:57 +0100 Subject: decoder_api: removed function decoder_get_uri() Use input_stream.uri. --- src/decoder/wavpack_decoder_plugin.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/decoder/wavpack_decoder_plugin.c') 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); -- cgit v1.2.3