]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
SAT>IP: Add Triax tss400 support
authorJaroslav Kysela <perex@perex.cz>
Wed, 21 May 2014 12:43:48 +0000 (14:43 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 21 May 2014 12:43:48 +0000 (14:43 +0200)
src/input/mpegts/satip/satip.c

index 4c2eb9030a8e53c468f48f79acf408be01395d30..613c6688702123ae27f7faf005f6f5df74e69f31 100644 (file)
@@ -550,9 +550,12 @@ satip_discovery_http_closed(http_client_t *hc, int errn)
   int i, n;
 
   s = http_arg_get(&hc->hc_args, "Content-Type");
-  if (s && strcasecmp(s, "text/xml")) {
-    errn = EMEDIUMTYPE;
-    s = NULL;
+  if (s) {
+    n = http_tokenize(s, argv, ARRAY_SIZE(argv), ';');
+    if (n <= 0 || strcasecmp(s, "text/xml")) {
+      errn = EMEDIUMTYPE;
+      s = NULL;
+    }
   }
   if (errn != 0 || s == NULL || hc->hc_code != 200 ||
       hc->hc_data_size == 0 || hc->hc_data == NULL) {
@@ -613,15 +616,15 @@ satip_discovery_http_closed(http_client_t *hc, int errn)
   if ((manufacturerURL = htsmsg_xml_get_cdata_str(device, "manufacturerURL")) == NULL)
     goto finish;
   if ((modeldesc    = htsmsg_xml_get_cdata_str(device, "modelDescription")) == NULL)
-    goto finish;
+    modeldesc = "";
   if ((modelname    = htsmsg_xml_get_cdata_str(device, "modelName")) == NULL)
     goto finish;
   if ((modelnum     = htsmsg_xml_get_cdata_str(device, "modelNumber")) == NULL)
-    goto finish;
+    modelnum = "";
   if ((serialnum    = htsmsg_xml_get_cdata_str(device, "serialNumber")) == NULL)
-    goto finish;
+    serialnum = "";
   if ((presentation = htsmsg_xml_get_cdata_str(device, "presentationURL")) == NULL)
-    goto finish;
+    presentation = "";
   if ((udn          = htsmsg_xml_get_cdata_str(device, "UDN")) == NULL)
     goto finish;
   if ((tunercfg     = htsmsg_xml_get_cdata_str(device, "urn:ses-com:satipX_SATIPCAP")) == NULL)