- Background: For some reason, mplayer locks up if we cleanup when exitting by calling arts_free(). Therefore, we trade risk of memory leakage when using KDE aRts over locking up. - Caveat: Memory probably is not witheld after mplayer exits. I won't say that it IS NOT withheld cause I do not know what arts_free() does exactly. So, worst case scenario is probably that we will leak memory for as many files the user tells mplayer to play but only WHILE mplayer is running. o Bump PORTREVISION Reviewed by: kde (some members)
18 lines
428 B
C
18 lines
428 B
C
--- libao2/ao_arts.c.orig Fri Dec 27 14:35:07 2002
|
|
+++ libao2/ao_arts.c Mon Mar 3 17:10:38 2003
|
|
@@ -102,8 +102,14 @@
|
|
|
|
static void uninit()
|
|
{
|
|
- arts_close_stream(stream);
|
|
+ if (stream != NULL) {
|
|
+ arts_close_stream(stream);
|
|
+ stream = NULL;
|
|
+ }
|
|
+/* XXX - we get "MPlayer interrupted by signal 11 in module:
|
|
+ exit_player" unless commented :(
|
|
arts_free();
|
|
+*/
|
|
}
|
|
|
|
static int play(void* data,int len,int flags)
|