From: spdfrk Date: Thu, 18 Mar 2021 21:31:06 +0000 (+0100) Subject: remote timeshift: fix compilation with IPTV disabled X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbaa0f850394af8ab845df802f5f781ac0218ec4;p=thirdparty%2Ftvheadend.git remote timeshift: fix compilation with IPTV disabled --- diff --git a/src/profile.c b/src/profile.c index 9f5c4f076..8fe6c9b84 100644 --- a/src/profile.c +++ b/src/profile.c @@ -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);