]> 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:55 +0000 (18:40 +0100)
src/profile.c

index 6a41be392a08235e07cb2a9025529e54069336ba..322c7115711a2e21491e4615f0d9267fa21fa148 100644 (file)
@@ -538,8 +538,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;
 }