Mercurial > audlegacy-plugins
comparison src/mtp_up/mtp.c @ 1675:ae9b0327b620
Fix plugins to conform with PLAYLIST_{UN}LOCK() change.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 09 Sep 2007 22:06:10 +0300 |
parents | 88f5ba93f3dd |
children | f35f9d6fcb6d |
comparison
equal
deleted
inserted
replaced
1672:416cca12988f | 1675:ae9b0327b620 |
---|---|
108 GList *node=NULL,*up_list=NULL; | 108 GList *node=NULL,*up_list=NULL; |
109 PlaylistEntry *entry; | 109 PlaylistEntry *entry; |
110 Playlist *current_play = playlist_get_active(); | 110 Playlist *current_play = playlist_get_active(); |
111 | 111 |
112 node = current_play->entries; | 112 node = current_play->entries; |
113 PLAYLIST_LOCK(current_play->mutex); /*needed so that the user doesn't modify the selection*/ | 113 PLAYLIST_LOCK(current_play); /*needed so that the user doesn't modify the selection*/ |
114 while (node) /*while creating the list of files to be uploaded*/ | 114 while (node) /*while creating the list of files to be uploaded*/ |
115 { | 115 { |
116 entry = PLAYLIST_ENTRY(node->data); | 116 entry = PLAYLIST_ENTRY(node->data); |
117 if (entry->selected) | 117 if (entry->selected) |
118 { | 118 { |
120 up_list=g_list_prepend(up_list,tuple); | 120 up_list=g_list_prepend(up_list,tuple); |
121 entry->selected = FALSE; | 121 entry->selected = FALSE; |
122 } | 122 } |
123 node = g_list_next(node); | 123 node = g_list_next(node); |
124 } | 124 } |
125 PLAYLIST_UNLOCK(current_play->mutex); | 125 PLAYLIST_UNLOCK(current_play); |
126 return g_list_reverse(up_list); | 126 return g_list_reverse(up_list); |
127 } | 127 } |
128 | 128 |
129 LIBMTP_track_t *track_metadata(Tuple *from_tuple) | 129 LIBMTP_track_t *track_metadata(Tuple *from_tuple) |
130 { | 130 { |