Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
htsp server: fix --disable-timeshift
  • Loading branch information
perexg committed Feb 8, 2016
1 parent 8eb4f40 commit 866f8ff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/htsp_server.c
Expand Up @@ -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);
Expand Down

0 comments on commit 866f8ff

Please sign in to comment.