From fc44eeb80f2fb7f5ec8ab79d96a87cb04a79335c Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Wed, 8 Jan 2014 21:54:13 +0100 Subject: [PATCH] Remove url encoding in filescanner_icy --- src/filescanner_icy.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/filescanner_icy.c b/src/filescanner_icy.c index 18ddb2a7..e2399026 100644 --- a/src/filescanner_icy.c +++ b/src/filescanner_icy.c @@ -72,9 +72,6 @@ struct icy_ctx static void free_icy(struct icy_ctx *ctx) { - if (ctx->url) - free(ctx->url); - if (ctx) free(ctx); } @@ -170,7 +167,7 @@ scan_metadata_icy(char *url, struct media_file_info *mfi) } memset(ctx, 0, sizeof(struct icy_ctx)); - ctx->url = evhttp_encode_uri(url); + ctx->url = url; /* TODO https */ av_url_split(NULL, 0, NULL, 0, ctx->hostname, sizeof(ctx->hostname), &ctx->port, ctx->path, sizeof(ctx->path), ctx->url);