Mercurial > audlegacy
comparison src/audacious/playlist.c @ 3778:b4fe7d2a0d0d
Use a more describing variable name.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 17 Oct 2007 23:01:59 +0300 |
parents | da090f448c88 |
children | ec989c2cde74 |
comparison
equal
deleted
inserted
replaced
3742:e7caa4d49d74 | 3778:b4fe7d2a0d0d |
---|---|
666 gint pos, | 666 gint pos, |
667 Tuple *tuple, | 667 Tuple *tuple, |
668 InputPlugin * dec) | 668 InputPlugin * dec) |
669 { | 669 { |
670 PlaylistEntry *entry; | 670 PlaylistEntry *entry; |
671 Tuple *main_tuple = NULL; | 671 Tuple *parent_tuple = NULL; |
672 gint nsubtunes = 0, i = 0; | 672 gint nsubtunes = 0, i = 0; |
673 gboolean add_flag = TRUE; | 673 gboolean add_flag = TRUE; |
674 | 674 |
675 g_return_if_fail(playlist != NULL); | 675 g_return_if_fail(playlist != NULL); |
676 g_return_if_fail(filename != NULL); | 676 g_return_if_fail(filename != NULL); |
677 | 677 |
678 if (tuple != NULL) { | 678 if (tuple != NULL) { |
679 nsubtunes = tuple->nsubtunes; | 679 nsubtunes = tuple->nsubtunes; |
680 if (nsubtunes > 0) { | 680 if (nsubtunes > 0) { |
681 main_tuple = tuple; | 681 parent_tuple = tuple; |
682 i = 1; | 682 i = 1; |
683 } | 683 } |
684 } | 684 } |
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, | 690 filename_entry = g_strdup_printf("%s?%d", filename, |
691 main_tuple->subtunes ? main_tuple->subtunes[i] : i); | 691 parent_tuple->subtunes ? parent_tuple->subtunes[i] : i); |
692 | 692 |
693 /* We're dealing with subtune, let's ask again tuple information | 693 /* We're dealing with subtune, let's ask again tuple information |
694 * to plugin, by passing the ?subtune suffix; this way we get | 694 * to plugin, by passing the ?subtune suffix; this way we get |
695 * specific subtune information in the tuple, if available. | 695 * specific subtune information in the tuple, if available. |
696 */ | 696 */ |
739 entry->length = tuple_get_int(tuple, FIELD_LENGTH, NULL); | 739 entry->length = tuple_get_int(tuple, FIELD_LENGTH, NULL); |
740 entry->tuple = tuple; | 740 entry->tuple = tuple; |
741 } | 741 } |
742 } | 742 } |
743 | 743 |
744 if (main_tuple) | 744 if (parent_tuple) |
745 tuple_free(main_tuple); | 745 tuple_free(parent_tuple); |
746 | 746 |
747 if (tuple != NULL && tuple_get_int(tuple, FIELD_MTIME, NULL) == -1) { | 747 if (tuple != NULL && tuple_get_int(tuple, FIELD_MTIME, NULL) == -1) { |
748 // kick the scanner thread only if mtime = -1 (uninitialized) | 748 // kick the scanner thread only if mtime = -1 (uninitialized) |
749 g_mutex_lock(mutex_scan); | 749 g_mutex_lock(mutex_scan); |
750 playlist_get_info_scan_active = TRUE; | 750 playlist_get_info_scan_active = TRUE; |