diff options
author | Max Kellermann <max@duempel.org> | 2009-12-26 12:57:36 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-12-27 14:17:21 +0100 |
commit | 554b2b0ed9f8e27e3e03e1174f0c1feb7a5bf130 (patch) | |
tree | 0a85659f16e753a533cd6b0b794040fa26a8dc11 /src | |
parent | 627975e897502d6aa9999aeaf3ae0b13d5cb8129 (diff) | |
download | mpd-554b2b0ed9f8e27e3e03e1174f0c1feb7a5bf130.tar.gz mpd-554b2b0ed9f8e27e3e03e1174f0c1feb7a5bf130.tar.xz mpd-554b2b0ed9f8e27e3e03e1174f0c1feb7a5bf130.zip |
playlist/cue: return the original song URI
The caller should be responsible for building the absolute URI.
Diffstat (limited to 'src')
-rw-r--r-- | src/playlist/cue_playlist_plugin.c | 11 |
1 files changed, 1 insertions, 10 deletions
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; } |