From 554b2b0ed9f8e27e3e03e1174f0c1feb7a5bf130 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 26 Dec 2009 12:57:36 +0100 Subject: playlist/cue: return the original song URI The caller should be responsible for building the absolute URI. --- src/playlist/cue_playlist_plugin.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/playlist') diff --git a/src/playlist/cue_playlist_plugin.c b/src/playlist/cue_playlist_plugin.c index 8db0018cb..27576520c 100644 --- a/src/playlist/cue_playlist_plugin.c +++ b/src/playlist/cue_playlist_plugin.c @@ -38,8 +38,6 @@ struct cue_playlist { struct Cd *cd; unsigned next; - - char *path; }; static struct playlist_provider * @@ -62,7 +60,6 @@ cue_playlist_open_uri(const char *uri) playlist_provider_init(&playlist->base, &cue_playlist_plugin); playlist->cd = cd; playlist->next = 1; - playlist->path = g_path_get_dirname(uri); return &playlist->base; } @@ -72,7 +69,6 @@ cue_playlist_close(struct playlist_provider *_playlist) { struct cue_playlist *playlist = (struct cue_playlist *)_playlist; - g_free(playlist->path); cd_delete(playlist->cd); g_free(playlist); } @@ -84,7 +80,6 @@ cue_playlist_read(struct playlist_provider *_playlist) struct Track *track; struct tag *tag; const char *filename; - char *uri; struct song *song; track = cd_get_track(playlist->cd, playlist->next); @@ -105,13 +100,9 @@ cue_playlist_read(struct playlist_provider *_playlist) return NULL; } - uri = g_strconcat(playlist->path, "/", filename, NULL); - - song = song_file_new(uri, NULL); + song = song_remote_new(filename); song->tag = tag; - g_free(uri); - return song; } -- cgit v1.2.3