From: Jaroslav Kysela Date: Mon, 8 Feb 2016 09:37:56 +0000 (+0100) Subject: htsp server: fix --disable-timeshift X-Git-Tag: v4.2.1~1064 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=866f8ff7245c62c61c5fc15970ca0c4abb7123d8;p=thirdparty%2Ftvheadend.git htsp server: fix --disable-timeshift --- diff --git a/src/htsp_server.c b/src/htsp_server.c index c7414e9ee..717af3607 100644 --- a/src/htsp_server.c +++ b/src/htsp_server.c @@ -4156,10 +4156,12 @@ htsp_subscription_skip(htsp_subscription_t *hs, streaming_skip_t *skip) htsmsg_add_u32(m, "subscriptionId", hs->hs_sid); /* Flush pkt buffers */ - if (skip->type != SMT_SKIP_ERROR) { +#if ENABLE_TIMESHIFT + if (skip->type != SMT_SKIP_ERROR && timeshift_conf.enabled) { htsp_flush_queue(hs->hs_htsp, &hs->hs_q, 0); htsp_subscription_timeshift_status(hs, &skip->timeshift); } +#endif if (skip->type == SMT_SKIP_ABS_TIME || skip->type == SMT_SKIP_ABS_SIZE) htsmsg_add_u32(m, "absolute", 1);