summaryrefslogtreecommitdiff
path: root/audio/gqmpeg/patches/patch-ab
blob: 1537c3e3a61d95e724de80964b20c6a22cb1eab5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-ab,v 1.14 2000/12/08 21:24:52 wiz Exp $

--- src/mixer.c.orig	Sun Dec  3 06:44:59 2000
+++ src/mixer.c
@@ -309,7 +320,10 @@
 	/* if problem, revert back to this:
       device->device_name = infos[i].label.name;
 	*/
-      device->device_name = g_strconcat(infos[infos[i].mixer_class].label.name, "." ,infos[i].label.name, NULL);
+      if (0 <= infos[i].mixer_class && infos[i].mixer_class < ndev)
+	device->device_name = g_strconcat(infos[infos[i].mixer_class].label.name, "." ,infos[i].label.name, NULL);
+      else
+	device->device_name = infos[i].label.name;
       device->stereo = 1;
       device->recordable = 0;
       device_list = g_list_append(device_list, device);