]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
remote timeshift: fix compilation with IPTV disabled
authorspdfrk <spdfrk123456@gmail.com>
Thu, 18 Mar 2021 21:31:06 +0000 (22:31 +0100)
committerFlole998 <Flole998@users.noreply.github.com>
Fri, 19 Mar 2021 18:25:03 +0000 (19:25 +0100)
src/profile.c

index 9f5c4f076342e60b5580526ff1acfe9868c1a875..8fe6c9b849a49d11f4ea56bdef907cad6d92c9e3 100644 (file)
@@ -1154,10 +1154,12 @@ profile_chain_close(profile_chain_t *prch)
     timeshift_destroy(prch->prch_timeshift);
     prch->prch_timeshift = NULL;
   }
+#if ENABLE_IPTV
   if(prch->prch_rtsp) {
     rtsp_st_destroy(prch->prch_rtsp);
     prch->prch_rtsp = NULL;
   }
+#endif
 #endif
   if (prch->prch_gh) {
     globalheaders_destroy(prch->prch_gh);
@@ -1222,12 +1224,13 @@ profile_htsp_work(profile_chain_t *prch,
   prch->prch_share = prsh->prsh_tsfix;
 
 #if ENABLE_TIMESHIFT
-  if (flags & PROFILE_WORK_REMOTE_TS) {
+#if ENABLE_IPTV
+  if (flags & PROFILE_WORK_REMOTE_TS)
     dst = prch->prch_rtsp = rtsp_st_create(dst, prch);
-  } else {
+  else
+#endif
     if (timeshift_period > 0)
       dst = prch->prch_timeshift = timeshift_create(dst, timeshift_period);
-  }
 #endif
 
   dst = prch->prch_gh = globalheaders_create(dst);