You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/x11-plugins/gkrellm-volume/files/gkrellm-volume-2.1.13-reena...

15 lines
463 B

diff --git a/volume.c b/volume.c
index 18418d1..58708d4 100644
--- a/volume.c
+++ b/volume.c
@@ -74,6 +74,9 @@ static void remove_all_mixers() {
static Slider *add_slider(Mixer *m, int dev) {
Slider *result,*s;
if (dev < 0 || dev >= mixer_get_nr_devices(m->mixer)) return NULL;
+ for (s = m->Sliderz ; s != NULL; s = s->next)
+ if (s->dev == dev)
+ return s;
result = malloc(sizeof(Slider));
result->mixer = m->mixer;
result->parent = m;