[pulseaudio-commits] r1416 - /trunk/src/pulsecore/autoload.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Fri Nov 24 01:29:11 PST 2006


Author: ossman
Date: Fri Nov 24 10:29:10 2006
New Revision: 1416

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=3D1416&root=3Dpulseaudio&vi=
ew=3Drev
Log:
Fix incorrect assert.

Modified:
    trunk/src/pulsecore/autoload.c

Modified: trunk/src/pulsecore/autoload.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulsecore/autoload.c?=
rev=3D1416&root=3Dpulseaudio&r1=3D1415&r2=3D1416&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/src/pulsecore/autoload.c (original)
+++ trunk/src/pulsecore/autoload.c Fri Nov 24 10:29:10 2006
@@ -102,7 +102,7 @@
 =

 int pa_autoload_remove_by_name(pa_core *c, const char*name, pa_namereg_typ=
e_t type) {
     pa_autoload_entry *e;
-    assert(c && name && type);
+    assert(c && name && module && (type =3D=3D PA_NAMEREG_SINK || type =3D=
=3D PA_NAMEREG_SOURCE));
 =

     if (!c->autoload_hashmap || !(e =3D pa_hashmap_get(c->autoload_hashmap=
, name)) || e->type !=3D type)
         return -1;




More information about the pulseaudio-commits mailing list