[rhythmbox] audioscrobbler: iterate data queue correctly instead of segfaulting



commit f20e383289ba8bf64b2b99c5ea255936f3a3d674
Author: Jamie Nicol <jamie thenicols net>
Date:   Thu Aug 16 00:27:52 2012 +0100

    audioscrobbler: iterate data queue correctly instead of segfaulting

 plugins/audioscrobbler/rb-audioscrobbler-user.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/audioscrobbler/rb-audioscrobbler-user.c b/plugins/audioscrobbler/rb-audioscrobbler-user.c
index 413ba08..59b523d 100644
--- a/plugins/audioscrobbler/rb-audioscrobbler-user.c
+++ b/plugins/audioscrobbler/rb-audioscrobbler-user.c
@@ -1625,7 +1625,7 @@ image_download_cb (GObject *source_object, GAsyncResult *res, gpointer user_data
 
 		/* iterate through each data item in the queue,
 		 * and if necessary update the image and emit appropriate signal */
-		for (data_i = g_queue_peek_head (data_queue); data_i != NULL; data_i = g_list_next (data_i)) {
+		for (data_i = g_queue_peek_head_link(data_queue); data_i != NULL; data_i = g_list_next (data_i)) {
 			RBAudioscrobblerUserData *data = data_i->data;
 
 			/* if nobody else has a reference to the data then



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]