changeset 3640:d5309028af21

Simplify adding of all sub-tunes.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 26 Sep 2007 00:16:39 +0300
parents 8b1c6c301d7f
children e9852ec75c5c 52745af33257
files src/audacious/playlist.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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.