# HG changeset patch # User Matti Hamalainen # Date 1190754999 -10800 # Node ID d5309028af21a441ff2c6a6a49ae0f136f02eaa6 # Parent 8b1c6c301d7ff68c8f5de7395928d673e022b727 Simplify adding of all sub-tunes. diff -r 8b1c6c301d7f -r d5309028af21 src/audacious/playlist.c --- a/src/audacious/playlist.c Tue Sep 25 23:49:11 2007 +0300 +++ b/src/audacious/playlist.c Wed Sep 26 00:16:39 2007 +0300 @@ -687,7 +687,9 @@ gchar *filename_entry; if (nsubtunes > 0) { - filename_entry = g_strdup_printf("%s?%d", filename, main_tuple->subtunes[i]); + filename_entry = g_strdup_printf("%s?%d", filename, + main_tuple->subtunes ? main_tuple->subtunes[i] : i); + /* We're dealing with subtune, let's ask again tuple information * to plugin, by passing the ?subtune suffix; this way we get * specific subtune information in the tuple, if available.