freebsd-ports/multimedia/mplayer/files/patch-libao2-ao_arts.c
Mario Sergio Fujikawa Ferreira 6b11d4a8f6 o Fix outstanding issue with KDE aRts: do not lockup when exitting
- 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)
2003-03-05 00:11:23 +00:00

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)