From 80975b95f6bcc9d2475d9946dc4e0e98632bd271 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Thu, 13 Nov 2003 08:39:45 +0000 Subject: [PATCH] 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) --- sys/oss/gstossmixer.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/oss/gstossmixer.c b/sys/oss/gstossmixer.c index 7eb2e4b619..19a53e0c97 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++) {