alsa-xmms-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Alsa-xmms-user] Re: Memory leak ?


From: Blaz Novak
Subject: [Alsa-xmms-user] Re: Memory leak ?
Date: 04 Apr 2002 11:46:41 +0200

> I'm using an alsa0.9beta12(it did the same thing with beta10a) only 
> system(no OSS emulation) and when I'm streaming online MP3(input)with 
> xmms 1.2.7 with this plugin(output), the memory used is increasing 
> slowly to fill almost my 512 MB of ram and my CPU usage reaches 100%.
> Is this normal ?

try this:

--------- cut here --------------

--- audio.c~    Tue Oct 16 23:01:06 2001
+++ audio.c     Sat Mar 30 16:05:12 2002
@@ -232,7 +232,7 @@
 
 gint alsa_get_written_time(void)
 {
-  return(written / alsa_bps);
+  return(alsa_total_written / alsa_bps);
 }
 
 void alsa_write(gpointer data, gint length)

-------- and here --------------

I've uploaded this patch a couple of days ago but I haven't received any
reply yet ... Basically this function returned a value of '13' almost
anytime it was called by the input plugin. This value is used to
timestamp audio data that gets enqueued for visualisation. Ofcourse that
way it was never dequeued. This fixed the problem for me but I don't
have the time to find out if it is the correct solution.



Blaz.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]