mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
fc23037a9a
This is due to race conditions between functions that modified the mixer like set_volume and snd_mixer_handle_events since the handle_events can now be called at any time. Fixed by adding locking around any snd_mixer call since even read functions can modify the mixer stucture, since alsa likes to clear it's values before reading new ones. The favorite race condition seemed to be that set_volume called read_elem (in alsalib) that reset the volumes to 0 and then read them with read_x_volume. This read looped on each channel and as the race condition occured the channels value could be anything , most of the time it was 0. Thus no value was read or only the value of one channel was and the volume was reset to 0. Fixes bug #478512. |
||
---|---|---|
.. | ||
gstalsa.c | ||
gstalsa.h | ||
gstalsadeviceprobe.c | ||
gstalsadeviceprobe.h | ||
gstalsamixer.c | ||
gstalsamixer.h | ||
gstalsamixerelement.c | ||
gstalsamixerelement.h | ||
gstalsamixeroptions.c | ||
gstalsamixeroptions.h | ||
gstalsamixertrack.c | ||
gstalsamixertrack.h | ||
gstalsaplugin.c | ||
gstalsasink.c | ||
gstalsasink.h | ||
gstalsasrc.c | ||
gstalsasrc.h | ||
Makefile.am |