ext/alsa/gstalsamixer.c: Don't break on options (fixes #156488).

Original commit message from CVS:
* ext/alsa/gstalsamixer.c: (gst_alsa_mixer_build_list):
Don't break on options (fixes #156488).
This commit is contained in:
Ronald S. Bultje 2004-10-27 09:21:25 +00:00
parent aa204cddf0
commit febc9b6120
2 changed files with 13 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2004-10-27 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* ext/alsa/gstalsamixer.c: (gst_alsa_mixer_build_list):
Don't break on options (fixes #156488).
2004-10-27 Thomas Vander Stichele <thomas at apestaart dot org>
* configure.ac:

View file

@ -280,9 +280,15 @@ gst_alsa_mixer_build_list (GstAlsaMixer * mixer)
/* prevent dup names */
for (item = mixer->tracklist; item != NULL; item = item->next) {
snd_mixer_elem_t *temp;
if (GST_IS_ALSA_MIXER_OPTIONS (item->data))
temp = GST_ALSA_MIXER_OPTIONS (item->data)->element;
else
temp = GST_ALSA_MIXER_TRACK (item->data)->element;
if (!strcmp (snd_mixer_selem_get_name (element),
snd_mixer_selem_get_name (GST_ALSA_MIXER_TRACK (item->data)->
element)))
snd_mixer_selem_get_name (element)))
samename++;
}