]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
SAT>IP: manufacturer optional on SAT>IP discovery
authorChristian Eiden <christian@eiden.ch>
Tue, 16 Aug 2016 19:15:40 +0000 (21:15 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 16 Aug 2016 19:35:16 +0000 (21:35 +0200)
As the XML element „manufacturer“ seems to be optional, treat it as optinal

src/input/mpegts/satip/satip.c

index 83ee878ae8431abf6517299d6747d24bc6ffdcf7..f7cb1da179f3856791199a3bee68268fcf06a187 100644 (file)
@@ -915,7 +915,7 @@ satip_discovery_http_closed(http_client_t *hc, int errn)
   if ((friendlyname = htsmsg_xml_get_cdata_str(device, "friendlyName")) == NULL)
     goto finish;
   if ((manufacturer = htsmsg_xml_get_cdata_str(device, "manufacturer")) == NULL)
-    goto finish;
+    manufacturer = "";
   if ((manufacturerURL = htsmsg_xml_get_cdata_str(device, "manufacturerURL")) == NULL)
     manufacturerURL = "";
   if ((modeldesc    = htsmsg_xml_get_cdata_str(device, "modelDescription")) == NULL)