GNOME Bugzilla – Bug 308738
Preference can't handle devices with the same names.
Last modified: 2005-12-17 16:59:22 UTC
Please describe the problem: In Volume Control Preference window. I have two devices with the same name, "wave" (for capture and playback). No matter which one I choose, the widget will control the capture "wave" device. Steps to reproduce: Actual results: Expected results: Does this happen every time? yes Other information:
Confirmed; we indeed don't.
Created attachment 53523 [details] [review] fix This patch should fix your bug. The same patch should be applied to other parts that copied the same code segment, such as gnome-volume-control. Please let me know if this fixes your problem.
Thank you for the patch. I haven't compiled Gnome from source in a while, and won't have time to do it again soon. However, I have a question about the patch. Say if I have three devices with the name "wave". Won't the code produce "wave", "wave #2", and "wave #2"? The elements in the list "collection" have unique names, so the counter "samenamenr" never get beyond 1.
Created attachment 53555 [details] [review] Update Right, this fixes that.
2005-12-17 Ronald S. Bultje <rbultje@ronald.bitfreak.net> * load.c: (create_mixer_collection): Give unique names to mixers if multiple mixers have the same device name (#308738).