]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
htsp server: set old epg state in htsp_method_async() when client doesn't request...
authorJaroslav Kysela <perex@perex.cz>
Thu, 28 Jan 2016 18:39:13 +0000 (19:39 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 28 Jan 2016 18:39:37 +0000 (19:39 +0100)
src/htsp_server.c

index 399eca0aa0ac34583bff9bd1257c61bd749036d9..e8f035f39d901a181110ae7f9067055a97a51582 100644 (file)
@@ -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)