mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
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)
This commit is contained in:
parent
e1c1805a38
commit
80975b95f6
1 changed files with 6 additions and 0 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Reference in a new issue