comparison 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
comparison
equal deleted inserted replaced
3639:8b1c6c301d7f 3640:d5309028af21
685 685
686 for (; add_flag && i <= nsubtunes; i++) { 686 for (; add_flag && i <= nsubtunes; i++) {
687 gchar *filename_entry; 687 gchar *filename_entry;
688 688
689 if (nsubtunes > 0) { 689 if (nsubtunes > 0) {
690 filename_entry = g_strdup_printf("%s?%d", filename, main_tuple->subtunes[i]); 690 filename_entry = g_strdup_printf("%s?%d", filename,
691 main_tuple->subtunes ? main_tuple->subtunes[i] : i);
692
691 /* We're dealing with subtune, let's ask again tuple information 693 /* We're dealing with subtune, let's ask again tuple information
692 * to plugin, by passing the ?subtune suffix; this way we get 694 * to plugin, by passing the ?subtune suffix; this way we get
693 * specific subtune information in the tuple, if available. 695 * specific subtune information in the tuple, if available.
694 */ 696 */
695 tuple = dec->get_song_tuple(filename_entry); 697 tuple = dec->get_song_tuple(filename_entry);