[polypaudio-commits] r817 - in /trunk/src/polypcore: namereg.c protocol-native.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Thu Apr 27 15:59:55 PDT 2006


Author: lennart
Date: Fri Apr 28 00:59:54 2006
New Revision: 817

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=817&root=polypaudio&view=rev
Log:
ouch!

fix brown paperbag bug which was triggered when runnign "pavumeter" and
specifying a sink on the command line.


Modified:
    trunk/src/polypcore/namereg.c
    trunk/src/polypcore/protocol-native.c

Modified: trunk/src/polypcore/namereg.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/polypcore/namereg.c?rev=817&root=polypaudio&r1=816&r2=817&view=diff
==============================================================================
--- trunk/src/polypcore/namereg.c (original)
+++ trunk/src/polypcore/namereg.c Fri Apr 28 00:59:54 2006
@@ -127,7 +127,7 @@
         return NULL;
     
     if (c->namereg && (e = pa_hashmap_get(c->namereg, name)))
-        if (e->type == e->type)
+        if (e->type == type)
             return e->data;
 
     if (pa_atou(name, &idx) < 0) {
@@ -136,7 +136,7 @@
             pa_autoload_request(c, name, type);
             
             if (c->namereg && (e = pa_hashmap_get(c->namereg, name)))
-                if (e->type == e->type)
+                if (e->type == type)
                     return e->data;
         }
         

Modified: trunk/src/polypcore/protocol-native.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/polypcore/protocol-native.c?rev=817&root=polypaudio&r1=816&r2=817&view=diff
==============================================================================
--- trunk/src/polypcore/protocol-native.c (original)
+++ trunk/src/polypcore/protocol-native.c Fri Apr 28 00:59:54 2006
@@ -1347,7 +1347,6 @@
     pa_tagstruct *reply;
     assert(c && t);
 
-    
     if (pa_tagstruct_getu32(t, &idx) < 0 ||
         (command != PA_COMMAND_GET_CLIENT_INFO &&
          command != PA_COMMAND_GET_MODULE_INFO &&




More information about the pulseaudio-commits mailing list