[polypaudio-commits] r819 - in /trunk/src/modules: module-alsa-sink.c module-alsa-source.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Fri Apr 28 00:29:32 PDT 2006


Author: ossman
Date: Fri Apr 28 09:29:32 2006
New Revision: 819

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=819&root=polypaudio&view=rev
Log:
When a control is removed, all bits are set so we need to test for that first.

Modified:
    trunk/src/modules/module-alsa-sink.c
    trunk/src/modules/module-alsa-source.c

Modified: trunk/src/modules/module-alsa-sink.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/modules/module-alsa-sink.c?rev=819&root=polypaudio&r1=818&r2=819&view=diff
==============================================================================
--- trunk/src/modules/module-alsa-sink.c (original)
+++ trunk/src/modules/module-alsa-sink.c Fri Apr 28 09:29:32 2006
@@ -168,6 +168,9 @@
 
     assert(u && u->mixer_handle);
 
+    if (mask == SND_CTL_EVENT_MASK_REMOVE)
+        return 0;
+
     if (mask & SND_CTL_EVENT_MASK_VALUE) {
         if (u->sink->get_hw_volume)
             u->sink->get_hw_volume(u->sink);

Modified: trunk/src/modules/module-alsa-source.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/modules/module-alsa-source.c?rev=819&root=polypaudio&r1=818&r2=819&view=diff
==============================================================================
--- trunk/src/modules/module-alsa-source.c (original)
+++ trunk/src/modules/module-alsa-source.c Fri Apr 28 09:29:32 2006
@@ -168,6 +168,9 @@
 
     assert(u && u->mixer_handle);
 
+    if (mask == SND_CTL_EVENT_MASK_REMOVE)
+        return 0;
+
     if (mask & SND_CTL_EVENT_MASK_VALUE) {
         if (u->source->get_hw_volume)
             u->source->get_hw_volume(u->source);




More information about the pulseaudio-commits mailing list