]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
htsp server: fixed wrong condition (profile_chain_work)
authorJaroslav Kysela <perex@perex.cz>
Wed, 22 Oct 2014 15:47:00 +0000 (17:47 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 22 Oct 2014 15:47:00 +0000 (17:47 +0200)
src/htsp_server.c

index 8b5a12509f9160f96b582dcf512b7c14b2979674..268d497a784f959b83b54f01b2943664186a2f93 100644 (file)
@@ -1763,7 +1763,7 @@ htsp_method_subscribe(htsp_connection_t *htsp, htsmsg_t *in)
 
   pro = profile_find_by_list(htsp->htsp_granted_access->aa_profiles, profile_id, "htsp");
   profile_chain_init(&hs->hs_prch, pro, ch);
-  if (!profile_chain_work(&hs->hs_prch, &hs->hs_input, timeshiftPeriod, pflags)) {
+  if (profile_chain_work(&hs->hs_prch, &hs->hs_input, timeshiftPeriod, pflags)) {
     tvhlog(LOG_ERR, "htsp", "unable to create profile chain '%s'", pro->pro_name);
     free(hs);
     return htsp_error("Stream setup error");