summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2fe2da4)
raw | patch | inline | side by side (parent: 2fe2da4)
author | Max Kellermann <max@duempel.org> | |
Tue, 29 Sep 2009 18:36:04 +0000 (20:36 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Tue, 29 Sep 2009 18:36:04 +0000 (20:36 +0200) |
It's set, but never read.
src/mpdclient.c | patch | blob | history | |
src/mpdclient.h | patch | blob | history |
diff --git a/src/mpdclient.c b/src/mpdclient.c
index 0b28edfb673571778a6f7416528c41774fc38e32..1728303c52e4c97595971fff9a7a1876b74c04fb 100644 (file)
--- a/src/mpdclient.c
+++ b/src/mpdclient.c
mpd_send_password(c->connection, password);
retval = mpdclient_finish_command(c);
}
- c->need_update = TRUE;
return retval;
}
c->song = playlist_get_song(c, mpd_status_get_song_pos(c->status));
}
- c->need_update = FALSE;
-
return retval;
}
else
mpd_send_play(c->connection);
- c->need_update = TRUE;
return mpdclient_finish_command(c);
}
return -1;
mpd_send_next(c->connection);
- c->need_update = TRUE;
return mpdclient_finish_command(c);
}
return -1;
mpd_send_previous(c->connection);
- c->need_update = TRUE;
return mpdclient_finish_command(c);
}
return -1;
mpd_send_shuffle(c->connection);
- c->need_update = TRUE;
return mpdclient_finish_command(c);
}
mpdclient_cmd_shuffle_range(struct mpdclient *c, guint start, guint end)
{
mpd_send_shuffle_range(c->connection, start, end);
- c->need_update = TRUE;
return mpdclient_finish_command(c);
}
retval = mpdclient_finish_command(c);
/* call playlist updated callback */
mpdclient_playlist_callback(c, PLAYLIST_EVENT_CLEAR, NULL);
- c->need_update = TRUE;
return retval;
}
/* call playlist updated callback */
mpdclient_playlist_callback(c, PLAYLIST_EVENT_ADD, (gpointer) song);
-#else
- c->need_update = TRUE;
#endif
return 0;
mpdclient_playlist_callback(c, PLAYLIST_EVENT_DELETE, (gpointer) song);
/* remove references to the song */
- if (c->song == song) {
+ if (c->song == song)
c->song = NULL;
- c->need_update = TRUE;
- }
mpd_song_free(song);
-
-#else
- c->need_update = TRUE;
#endif
return 0;
/* increment the playlist id, so we don't retrieve a new playlist */
c->playlist.id++;
-
-#else
- c->need_update = TRUE;
#endif
/* call playlist updated callback */
return -1;
mpd_send_load(c->connection, filename_utf8);
- c->need_update = TRUE;
return mpdclient_finish_command(c);
}
diff --git a/src/mpdclient.h b/src/mpdclient.h
index 37c368148ea14965f85e73a38909628b14577dbf..10fc226dfc76dbed2345dba73c57f87929ff2bf8 100644 (file)
--- a/src/mpdclient.h
+++ b/src/mpdclient.h
struct mpd_status *status;
struct mpd_song *song;
- gboolean need_update;
-
int volume;
unsigned updatingdb;
};