Mercurial > audlegacy
changeset 3583:d3ba8bcf9fd6 trunk
Cosmetics.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 19 Sep 2007 17:47:18 +0300 |
parents | bf2b39567b8c |
children | 4f99a9e270cf |
files | src/audacious/playlist.c |
diffstat | 1 files changed, 5 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/audacious/playlist.c Tue Sep 18 23:23:40 2007 +0200 +++ b/src/audacious/playlist.c Wed Sep 19 17:47:18 2007 +0300 @@ -676,17 +676,17 @@ if (tuple != NULL) { subtunes_num = tuple_get_int(tuple, FIELD_SUBSONG_NUM, NULL); - if ( subtunes_num > 0 ) + if (subtunes_num > 0) { i = 1; tuple_free(tuple); /* will be replaced by subtune tuples */ } } - for ( ; i <= subtunes_num ; i++ ) + for (; i <= subtunes_num; i++) { gchar *filename_entry; - if ( subtunes_num > 0 ) + if (subtunes_num > 0) { filename_entry = g_strdup_printf("%s?%d", filename, i); /* we're dealing with subtune, let's ask again tuple information @@ -695,10 +695,9 @@ tuple = dec->get_song_tuple(filename_entry); } else - { filename_entry = g_strdup(filename); - } - + + entry = playlist_entry_new(filename_entry, tuple ? tuple_get_string(tuple, FIELD_TITLE, NULL) : NULL, tuple ? tuple_get_int(tuple, FIELD_LENGTH, NULL) : -1, dec);