]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
satip client: fix for Telestar Twin UPnP discovery (missing 'BOOTID.UPNP.ORG' and...
authorJaroslav Kysela <perex@perex.cz>
Fri, 20 Jan 2017 18:41:51 +0000 (19:41 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 20 Jan 2017 18:41:51 +0000 (19:41 +0100)
src/input/mpegts/satip/satip.c

index 6f4492317d1c5af18f31791c455004565247c9a8..3b56267b73dcd448a6c25d3af0c4c934d4a6ffae 100644 (file)
@@ -1116,7 +1116,7 @@ satip_discovery_service_received
     goto add_uuid;
   if (location == NULL || strncmp(location, "http://", 7))
     goto add_uuid;
-  if (bootid == NULL || configid == NULL || server == NULL)
+  if (server == NULL)
     goto add_uuid;
 
   /* Forward information to next layer */
@@ -1131,9 +1131,9 @@ satip_discovery_service_received
   d->location = strdup(location);
   d->server   = strdup(server);
   d->uuid     = strdup(uuid);
-  d->bootid   = strdup(bootid);
-  d->configid = strdup(configid);
-  d->deviceid = strdup(deviceid ? deviceid : "");
+  d->bootid   = strdup(bootid ?: "");
+  d->configid = strdup(configid ?: "");
+  d->deviceid = strdup(deviceid ?: "");
   if (urlparse(d->location, &d->url)) {
     satip_discovery_destroy(d, 0);
     return;