From: Jaroslav Kysela Date: Thu, 28 Jan 2016 18:39:13 +0000 (+0100) Subject: htsp server: set old epg state in htsp_method_async() when client doesn't request... X-Git-Tag: v4.2.1~1096 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dd2995e399ed7d88821483c64aa1c2f743139bfb;p=thirdparty%2Ftvheadend.git htsp server: set old epg state in htsp_method_async() when client doesn't request change --- diff --git a/src/htsp_server.c b/src/htsp_server.c index 399eca0aa..e8f035f39 100644 --- a/src/htsp_server.c +++ b/src/htsp_server.c @@ -1374,7 +1374,8 @@ htsp_method_async(htsp_connection_t *htsp, htsmsg_t *in) const char *lang; /* Get optional flags, allow updating them if already in async mode */ - htsmsg_get_u32(in, "epg", &epg); + if (htsmsg_get_u32(in, "epg", &epg)) + epg = (htsp->htsp_async_mode & HTSP_ASYNC_EPG) ? 1 : 0; if (!htsmsg_get_s64(in, "lastUpdate", &lastUpdate)) // 0 = never htsp->htsp_epg_lastupdate = lastUpdate; else if (htsp->htsp_async_mode & HTSP_ASYNC_EPG)