From 9896b57523e7f64619660abadb4422ac96c5f8c8 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Fri, 12 Oct 2007 18:09:29 +0200 Subject: [PATCH] xmms plugin: Return `-1' when values could be read but are weird. --- src/xmms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xmms.c b/src/xmms.c index 238a8ee3..1e646d21 100644 --- a/src/xmms.c +++ b/src/xmms.c @@ -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); -- 2.11.0