diff src/audacious/playlist.c @ 3640:d5309028af21

Simplify adding of all sub-tunes.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 26 Sep 2007 00:16:39 +0300
parents 8d2f06fc841c
children da090f448c88
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.