From 277f7f59a55df579410d1164fd7dc526ce73cfde Mon Sep 17 00:00:00 2001 Message-Id: <277f7f59a55df579410d1164fd7dc526ce73cfde.1715433140.git.mdw@distorted.org.uk> From: Mark Wooding Date: Sun, 30 Sep 2007 22:28:19 +0100 Subject: [PATCH] fettle the right state word... Organization: Straylight/Edgeware From: Richard Kettlewell --- lib/eclient.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/eclient.c b/lib/eclient.c index d0cf661..2ff4ce4 100644 --- a/lib/eclient.c +++ b/lib/eclient.c @@ -1200,7 +1200,7 @@ static void logline(disorder_eclient *c, const char *line) { static void logentry_completed(disorder_eclient *c, int attribute((unused)) nvec, char **vec) { if(!c->log_callbacks->completed) return; - c->state &= ~DISORDER_PLAYING; + c->statebits &= ~DISORDER_PLAYING; c->log_callbacks->completed(c->log_v, vec[0]); if(c->log_callbacks->state) c->log_callbacks->state(c->log_v, c->statebits | DISORDER_CONNECTED); @@ -1209,7 +1209,7 @@ static void logentry_completed(disorder_eclient *c, static void logentry_failed(disorder_eclient *c, int attribute((unused)) nvec, char **vec) { if(!c->log_callbacks->failed)return; - c->state &= ~DISORDER_PLAYING; + c->statebits &= ~DISORDER_PLAYING; c->log_callbacks->failed(c->log_v, vec[0], vec[1]); if(c->log_callbacks->state) c->log_callbacks->state(c->log_v, c->statebits | DISORDER_CONNECTED); @@ -1224,7 +1224,7 @@ static void logentry_moved(disorder_eclient *c, static void logentry_playing(disorder_eclient *c, int attribute((unused)) nvec, char **vec) { if(!c->log_callbacks->playing) return; - c->state |= DISORDER_PLAYING; + c->statebits |= DISORDER_PLAYING; c->log_callbacks->playing(c->log_v, vec[0], vec[1]); if(c->log_callbacks->state) c->log_callbacks->state(c->log_v, c->statebits | DISORDER_CONNECTED); @@ -1267,7 +1267,7 @@ static void logentry_removed(disorder_eclient *c, static void logentry_scratched(disorder_eclient *c, int attribute((unused)) nvec, char **vec) { if(!c->log_callbacks->scratched) return; - c->state &= ~DISORDER_PLAYING; + c->statebits &= ~DISORDER_PLAYING; c->log_callbacks->scratched(c->log_v, vec[0], vec[1]); if(c->log_callbacks->state) c->log_callbacks->state(c->log_v, c->statebits | DISORDER_CONNECTED); -- [mdw]