Code

xmms plugin: Return `-1' when values could be read but are weird.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Fri, 12 Oct 2007 16:09:29 +0000 (18:09 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Fri, 12 Oct 2007 16:09:29 +0000 (18:09 +0200)
src/xmms.c

index 238a8ee3bf5e639dc0dd0718e49683b1448716af..1e646d21165722b289f6721dd672837e03b5b40c 100644 (file)
@@ -55,7 +55,7 @@ int cxmms_read (void)
   xmms_remote_get_info (xmms_session, &rate, &freq, &nch);
 
   if ((freq == 0) || (nch == 0))
-    return (0);
+    return (-1);
 
   cxmms_submit ("bitrate", rate);
   cxmms_submit ("frequency", freq);