[Xfce4-commits] <xfce4-mpc-plugin:master> finally backout all previous commit, was wrong
Landry Breuil
noreply at xfce.org
Sat Oct 16 12:38:04 CEST 2010
Updating branch refs/heads/master
to 81db0ad8ac76663a9aac1b04813ea24d87bb5ed0 (commit)
from 389a8c83f6430af7e13b378bad4f6841fde45462 (commit)
commit 81db0ad8ac76663a9aac1b04813ea24d87bb5ed0
Author: Landry Breuil <landry at xfce.org>
Date: Sat Oct 16 12:31:30 2010 +0200
finally backout all previous commit, was wrong
panel-plugin/simple-libmpd.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/panel-plugin/simple-libmpd.c b/panel-plugin/simple-libmpd.c
index 1913308..d035957 100644
--- a/panel-plugin/simple-libmpd.c
+++ b/panel-plugin/simple-libmpd.c
@@ -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] && strcmp(lines[i],"OK") && md->alloutputs[md->nb]->enabled < 0)
+ while(lines[i] && md->alloutputs[md->nb]->enabled < 0)
{
tokens = g_strsplit(lines[i], ":", 2);
/* remove leading whitespace */
@@ -459,8 +459,7 @@ void parse_outputs_answer(MpdObj *mo, void *param)
i++;
g_strfreev(tokens);
}
- if (lines[i] && strcmp(lines[i],"OK"))
- md->nb++;
+ md->nb++;
}
g_strfreev(lines);
}
More information about the Xfce4-commits
mailing list