Package: gkrellm-volume
Version: 2.1.13-1

When the ADDMIXER configuration command fails (eg. when the
corresponding device is removed, subsequent SETDEVNAME commands will
modify the name of the last added slider of the previous mixer, which is
wrong.

Setting the current slider pointer to NULL after adding a mixer fixes
the issue.

Patch attached.

-- 
Jindrich Makovicka
--- gkrellm-volume-2.1.13.orig/volume.c
+++ gkrellm-volume-2.1.13/volume.c
@@ -533,6 +533,7 @@
   if (!strcmp("MUTEALL",command)) SET_FLAG(global_flags,MUTEALL);
   else if (!strcmp("ADDMIXER",command)) {
     m = add_mixer_by_id(arg);
+    s = NULL;
   } else if (!strcmp("RIGHT_CLICK_CMD",command)) {
     g_strlcpy(right_click_cmd, arg, sizeof(right_click_cmd));
   } else if (!strcmp("ADDDEV",command)) {

Reply via email to