Changeset 862
- Timestamp:
- 03/03/08 23:57:16 (9 months ago)
- Files:
-
- 1 modified
-
trunk/plugin_mpd.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugin_mpd.c
r860 r862 86 86 #include <sys/time.h> 87 87 88 / /source: http://www.musicpd.org/libmpdclient.shtml88 /* source: http://www.musicpd.org/libmpdclient.shtml */ 89 89 #include "libmpdclient.h" 90 90 … … 196 196 197 197 if (timedelta < waittime) { 198 / /debug("[MPD] waittime not reached...\n");198 /* debug("[MPD] waittime not reached...\n"); */ 199 199 return 1; 200 200 } 201 //check if configured 201 202 /* check if configured */ 202 203 if (configure_mpd() < 0) { 203 204 return -1; 204 205 } 205 / /check if connected206 /* check if connected */ 206 207 if (conn == NULL || conn->error) { 207 208 if (conn) { … … 237 238 mpd_sendCommandListEnd(conn); 238 239 239 //stats240 240 stats = mpd_getStats(conn); 241 241 if (stats == NULL) { … … 243 243 goto cleanup; 244 244 } 245 //status 245 246 246 mpd_nextListOkCommand(conn); 247 247 if ((status = mpd_getStatus(conn)) == NULL) { … … 249 249 goto cleanup; 250 250 } 251 //song 251 252 252 mpd_nextListOkCommand(conn); 253 253 while ((entity = mpd_getNextInfoEntity(conn))) { … … 579 579 debug("[MPD] error, NOT configured!"); 580 580 581 / /when mpd dies, do NOT exit application, ignore it!581 /* when mpd dies, do NOT exit application, ignore it! */ 582 582 signal(SIGPIPE, SIG_IGN); 583 583 gettimeofday(×tamp, NULL);
