Updating branch refs/heads/master to 2a58794661890cc004ee8f07bd4e29cfc44b07c1 (commit) from 81db0ad8ac76663a9aac1b04813ea24d87bb5ed0 (commit)
commit 2a58794661890cc004ee8f07bd4e29cfc44b07c1 Author: Landry Breuil <lan...@xfce.org> Date: Sat Oct 16 12:36:17 2010 +0200 finally, only bail out if a rogue OK is found in read buffer panel-plugin/simple-libmpd.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/panel-plugin/simple-libmpd.c b/panel-plugin/simple-libmpd.c index d035957..a7b3cb3 100644 --- a/panel-plugin/simple-libmpd.c +++ b/panel-plugin/simple-libmpd.c @@ -414,7 +414,7 @@ void parse_playlistinfo_answer(MpdObj *mo, void *param) ms->id = ms->pos = -1; DBG("Going to parse song #%d", md->nb); - while(lines[i] && ms->id < 0) + while(lines[i] && strcmp(lines[i],"OK") && ms->id < 0) { tokens = g_strsplit(lines[i], ":", 2); /* remove leading whitespace */ @@ -447,7 +447,7 @@ void parse_outputs_answer(MpdObj *mo, void *param) md->alloutputs[md->nb] = g_new(mpd_Output, 1); md->alloutputs[md->nb]->enabled = -1; DBG("Going to parse output #%d", md->nb); - while(lines[i] && md->alloutputs[md->nb]->enabled < 0) + while(lines[i] && strcmp(lines[i],"OK") && md->alloutputs[md->nb]->enabled < 0) { tokens = g_strsplit(lines[i], ":", 2); /* remove leading whitespace */ _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org http://foo-projects.org/mailman/listinfo/xfce4-commits