summaryrefslogtreecommitdiff
path: root/multimedia/libflash/patches/patch-ai
blob: 210de7f473b12783905ed47b2060bfd5f1ff08b7 (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
25
$NetBSD: patch-ai,v 1.1.1.1 2004/01/26 13:34:46 jmmv Exp $

--- Plugin/plugin.c.orig	Mon Jun 12 01:24:09 2000
+++ Plugin/plugin.c
@@ -162,7 +162,11 @@ NPP_New(NPMIMEType pluginType,
 
 		FlashSetCursorOnOffMethod(This->fh, cursorOnOff, (void*)instance);
 
-		FlashSoundInit(This->fh, "/dev/dsp");
+#ifndef DEV_DSP
+#define DEV_DSP	"/dev/dsp"
+#endif
+
+		FlashSoundInit(This->fh, DEV_DSP);
 
 		return NPERR_NO_ERROR;
 	}
@@ -193,6 +197,7 @@ NPP_Destroy(NPP instance, NPSavedData** 
 			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;