]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
profile: print an error when the profile is problematic, issue #4721
authorJaroslav Kysela <perex@perex.cz>
Sun, 12 Nov 2017 17:40:40 +0000 (18:40 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sun, 12 Nov 2017 17:40:40 +0000 (18:40 +0100)
src/profile.c

index d1a312aa8a2fb292a739d062252628165a16d3c8..f3466aae5408675db274a8826d5382ea772a8ddc 100644 (file)
@@ -540,8 +540,11 @@ profile_find_by_list
   } else {
     res = pro;
   }
-  if (!res)
+  if (!res) {
     res = profile_find_by_name((sflags & SUBSCRIPTION_HTSP) ? "htsp" : NULL, NULL);
+    if (!profile_verify(res, flags))
+      tvherror(LS_PROFILE, "unable to select a working profile (asked '%s' alt '%s')", name, alt);
+  }
   return res;
 }