summaryrefslogtreecommitdiffstats
path: root/sys/oss
diff options
context:
space:
mode:
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>2003-11-13 08:39:45 +0000
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>2003-11-13 08:39:45 +0000
commit80975b95f6bcc9d2475d9946dc4e0e98632bd271 (patch)
treed04d7b1d46d334cfaf39da0f93ec257413a155ed /sys/oss
parente1c1805a388bb545821e919e4b15c3f69bf0e995 (diff)
Fix for if SOUND_MIXER_INFO is not available (fBSD and others)
Original commit message from CVS: Fix for if SOUND_MIXER_INFO is not available (fBSD and others)
Diffstat (limited to 'sys/oss')
-rw-r--r--sys/oss/gstossmixer.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/oss/gstossmixer.c b/sys/oss/gstossmixer.c
index 7eb2e4b6..19a53e0c 100644
--- a/sys/oss/gstossmixer.c
+++ b/sys/oss/gstossmixer.c
@@ -404,7 +404,9 @@ gst_ossmixer_build_list (GstOssElement *oss)
gint i, devmask;
const GList *pads = gst_element_get_pad_list (GST_ELEMENT (oss));
GstPadDirection dir = GST_PAD_UNKNOWN;
+#ifdef SOUND_MIXER_INFO
struct mixer_info minfo;
+#endif
g_return_if_fail (oss->mixer_fd == -1);
@@ -433,9 +435,13 @@ gst_ossmixer_build_list (GstOssElement *oss)
}
/* get name */
+#ifdef SOUND_MIXER_INFO
if (ioctl (oss->mixer_fd, SOUND_MIXER_INFO, &minfo) == 0) {
oss->device_name = g_strdup (minfo.name);
}
+#else
+ oss->device_name = g_strdup ("Unknown");
+#endif
/* build track list */
for (i = 0; i < SOUND_MIXER_NRDEVICES; i++) {