summaryrefslogtreecommitdiff
path: root/graphics/libflash/patches/patch-ah
blob: c387ce9d4e25395498c2ab60f2a3015832800e6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$NetBSD: patch-ah,v 1.2 2001/12/03 04:44:58 mycroft Exp $

--- Plugin/plugin.c.orig	Mon Jun 12 08:24:09 2000
+++ Plugin/plugin.c	Mon Dec  3 04:43:37 2001
@@ -162,7 +162,11 @@
 
 		FlashSetCursorOnOffMethod(This->fh, cursorOnOff, (void*)instance);
 
+#ifdef __NetBSD__
+		FlashSoundInit(This->fh, "/dev/sound");
+#else
 		FlashSoundInit(This->fh, "/dev/dsp");
+#endif
 
 		return NPERR_NO_ERROR;
 	}
@@ -193,6 +197,7 @@
 			XSync(This->dpy,False);
 			XFreePixmap(This->dpy, This->canvas);
 			shmdt(This->segInfo.shmaddr);
+			shmctl(This->segInfo.shmid, IPC_RMID, 0);
 
 			FlashClose(This->fh);
 			This->fh = 0;