|
Lines 100-105
Link Here
|
| 100 |
playlist_position = NULL; |
100 |
playlist_position = NULL; |
| 101 |
} |
101 |
} |
| 102 |
|
102 |
|
|
|
103 |
if (queued_list) |
| 104 |
{ |
| 105 |
g_list_free(queued_list); |
| 106 |
queued_list = NULL; |
| 107 |
} |
| 108 |
|
| 103 |
pthread_mutex_unlock(&playlist_mutex); |
109 |
pthread_mutex_unlock(&playlist_mutex); |
| 104 |
playlist_generate_shuffle_list(); |
110 |
playlist_generate_shuffle_list(); |
| 105 |
playlistwin_update_list(); |
111 |
playlistwin_update_list(); |
|
Lines 769-774
Link Here
|
| 769 |
queued_list = g_list_append(queued_list, data); |
775 |
queued_list = g_list_append(queued_list, data); |
| 770 |
} |
776 |
} |
| 771 |
|
777 |
|
|
|
778 |
gint get_playlist_queue_length() |
| 779 |
{ |
| 780 |
gint qlength; |
| 781 |
|
| 782 |
PL_LOCK(); |
| 783 |
qlength = g_list_length(queued_list); |
| 784 |
PL_UNLOCK(); |
| 785 |
|
| 786 |
return qlength; |
| 787 |
} |
| 772 |
|
788 |
|
| 773 |
void playlist_queue_selected(void) |
789 |
void playlist_queue_selected(void) |
| 774 |
{ |
790 |
{ |
|
Lines 823-828
Link Here
|
| 823 |
|
839 |
|
| 824 |
playlistwin_update_list(); |
840 |
playlistwin_update_list(); |
| 825 |
} |
841 |
} |
|
|
842 |
|
| 843 |
void playlist_queue_remove(int pos) |
| 844 |
{ |
| 845 |
void *entry; |
| 846 |
|
| 847 |
PL_LOCK(); |
| 848 |
entry = g_list_nth_data(playlist, pos); |
| 849 |
queued_list = g_list_remove(queued_list, entry); |
| 850 |
PL_UNLOCK(); |
| 851 |
|
| 852 |
playlistwin_update_list(); |
| 853 |
} |
| 826 |
|
854 |
|
| 827 |
int playlist_get_queue_position(PlaylistEntry *entry) |
855 |
int playlist_get_queue_position(PlaylistEntry *entry) |
| 828 |
{ |
856 |
{ |
|
Lines 900-906
Link Here
|
| 900 |
if (cfg.shuffle) |
928 |
if (cfg.shuffle) |
| 901 |
{ |
929 |
{ |
| 902 |
playlist_position = NULL; |
930 |
playlist_position = NULL; |
| 903 |
__playlist_generate_shuffle_list(); |
931 |
__playlist_generate_shuffle_list(); |
| 904 |
} |
932 |
} |
| 905 |
else |
933 |
else |
| 906 |
playlist_position = playlist->data; |
934 |
playlist_position = playlist->data; |