]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
SAT>IP: Fix the UPnP header parser 392/head
authorJaroslav Kysela <perex@perex.cz>
Wed, 21 May 2014 19:09:21 +0000 (21:09 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 21 May 2014 19:09:21 +0000 (21:09 +0200)
src/input/mpegts/satip/satip.c

index 613c6688702123ae27f7faf005f6f5df74e69f31..9193b236131591aa6398d23172acacf5e32a444c 100644 (file)
@@ -766,20 +766,20 @@ satip_discovery_service_received
   while (1) {
     if (ptr == NULL)
       break;
-    if (http_tokenize(ptr, argv, 2, -1) == 2) {
-      if (strcmp(argv[0], "ST:") == 0)
+    if (http_tokenize(ptr, argv, 2, ':') == 2) {
+      if (strcmp(argv[0], "ST") == 0)
         st = argv[1];
-      else if (strcmp(argv[0], "LOCATION:") == 0)
+      else if (strcmp(argv[0], "LOCATION") == 0)
         location = argv[1];
-      else if (strcmp(argv[0], "SERVER:") == 0)
+      else if (strcmp(argv[0], "SERVER") == 0)
         server = argv[1];
-      else if (strcmp(argv[0], "BOOTID.UPNP.ORG:") == 0)
+      else if (strcmp(argv[0], "BOOTID.UPNP.ORG") == 0)
         bootid = argv[1];
-      else if (strcmp(argv[0], "CONFIGID.UPNP.ORG:") == 0)
+      else if (strcmp(argv[0], "CONFIGID.UPNP.ORG") == 0)
         configid = argv[1];
-      else if (strcmp(argv[0], "DEVICEID.SES.COM:") == 0)
+      else if (strcmp(argv[0], "DEVICEID.SES.COM") == 0)
         deviceid = argv[1];
-      else if (strcmp(argv[0], "USN:") == 0) {
+      else if (strcmp(argv[0], "USN") == 0) {
         n = http_tokenize(argv[1], argv, ARRAY_SIZE(argv), ':');
         for (i = 0; i < n+1; i++)
           if (argv[i] && strcmp(argv[i], "uuid") == 0) {