summaryrefslogtreecommitdiff
path: root/graphics/mplayer/patches/patch-ak
blob: 45671dc22129c8cef80c9fe56375180ad4458325 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-ak,v 1.2 2001/12/25 18:02:09 wiz Exp $
--- libao2/ao_sun.c.orig	Sat Jun 23 23:40:04 2001
+++ libao2/ao_sun.c	Mon Jul 30 22:15:45 2001
@@ -197,10 +197,10 @@
 }
 
 // to set/get/query special features/parameters
-static int control(int cmd,int arg){
+static int control(int cmd,void* arg){
   switch(cmd){
     case AOCONTROL_SET_DEVICE:
-      audio_dev=(char*)arg;
+      audio_dev=strdup((char*)arg);
       return CONTROL_OK;
     case AOCONTROL_QUERY_FORMAT:
       return CONTROL_TRUE;