[pulseaudio-commits] r1998 - /trunk/src/pulsecore/parseaddr.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Tue Oct 30 07:05:19 PDT 2007


Author: lennart
Date: Tue Oct 30 15:05:18 2007
New Revision: 1998

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1998&root=pulseaudio&view=rev
Log:
handle tcp4: prefix for server specs correctly. (Closes #136)

Modified:
    trunk/src/pulsecore/parseaddr.c

Modified: trunk/src/pulsecore/parseaddr.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulsecore/parseaddr.c?rev=1998&root=pulseaudio&r1=1997&r2=1998&view=diff
==============================================================================
--- trunk/src/pulsecore/parseaddr.c (original)
+++ trunk/src/pulsecore/parseaddr.c Tue Oct 30 15:05:18 2007
@@ -103,9 +103,12 @@
     else if (pa_startswith(p, "unix:")) {
         ret_p->type = PA_PARSED_ADDRESS_UNIX;
         p += sizeof("unix:")-1;
-    } else if (pa_startswith(p, "tcp:") || pa_startswith(p, "tcp4:")) {
+    } else if (pa_startswith(p, "tcp:")) {
         ret_p->type = PA_PARSED_ADDRESS_TCP4;
         p += sizeof("tcp:")-1;
+    } else if (pa_startswith(p, "tcp4:")) {
+        ret_p->type = PA_PARSED_ADDRESS_TCP4;
+        p += sizeof("tcp4:")-1;
     } else if (pa_startswith(p, "tcp6:")) {
         ret_p->type = PA_PARSED_ADDRESS_TCP6;
         p += sizeof("tcp6:")-1;




More information about the pulseaudio-commits mailing list