Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
htsp server: set old epg state in htsp_method_async() when client doe…
…sn't request change
  • Loading branch information
perexg committed Jan 28, 2016
1 parent b87c9d2 commit dd2995e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/htsp_server.c
Expand Up @@ -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)
Expand Down

0 comments on commit dd2995e

Please sign in to comment.