Re: Current status of anything?

Pete Ryland <[email protected]>
Newsgroups gmane.comp.audio.netmd.devel
Message-ID <[email protected]>
On Fri, Feb 21, 2003 at 08:45:47AM +0100, Martin List-Petersen wrote:
> Citat Pete Ryland <[email protected]>:
> > All available in the latest version at http://www.pdr.cx/projects/gnetmd/
> > with (unofficial) debian packages available at
> > http://www.pdr.cx/tmp/gnetmd/
> 
> I tried to recompile your debian source package, but it complains, that
> xmms-config not is present. 
> 
> So you should probably add "xmms-dev" to your Build-Dependencies.

ok, will do - thanks!

> After installing that, it'll break during compile with the following message:
> xmms_netmd_plugin.c: In function `xmms_netmd_get_time':
> xmms_netmd_plugin.c:189: parse error before `int'
> xmms_netmd_plugin.c:191: `r' undeclared (first use in this function)
> xmms_netmd_plugin.c:191: (Each undeclared identifier is reported only once
> xmms_netmd_plugin.c:191: for each function it appears in.)
> 
> Any ideas ?

Looks like I've been naughty - I've used a C++ism.  Apply the attached patch
to that file to fix this.  Again, thanks for that.

> He draweth out the thread of his verbosity finer than the staple of his
> argument.
> 		-- William Shakespeare, "Love's Labour's Lost"

Love the quote. :)

All the best,
Pete
-- 
Pete Ryland
http://pdr.cx/
int_r_problem.patch (text/plain, 582 B)
--- xmms_netmd_plugin.c.old	2003-02-21 07:53:50.000000000 +0000
+++ xmms_netmd_plugin.c	2003-02-21 07:54:09.000000000 +0000
@@ -158,6 +158,7 @@
 static int xmms_netmd_get_time(void) {
   static int i = -1;
   static int lastval = 0;
+  int r;
 
   // terrible hack coz it polls more frequently than netmd can respond, and
   // hence introduces nasty race conditions.
@@ -186,7 +187,7 @@
       return lastval = 10*pp;
     }
   }
-  int r = 10*netmd_playback_get_position(md);
+  r = 10*netmd_playback_get_position(md);
   //printf("returning %2d\n", r);
   return lastval = r;
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.