]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
epg query: fix thinko
authorJaroslav Kysela <perex@perex.cz>
Fri, 28 Nov 2014 16:45:26 +0000 (17:45 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 28 Nov 2014 16:45:26 +0000 (17:45 +0100)
src/epg.c

index e29541ad1c163e9fa8d912bc0bccb7bb803d8bfb..82f69808d4a022b1426e479c361c7d90e0cf6f2d 100644 (file)
--- a/src/epg.c
+++ b/src/epg.c
@@ -2552,7 +2552,7 @@ epg_query ( epg_query_t *eq, access_t *perm )
     LIST_FOREACH(ctm, &tag->ct_ctms, ctm_tag_link) {
       ch2 = ctm->ctm_channel;
       if(ch2 == channel || channel == NULL)
-        if (channel_access(channel, perm, 0))
+        if (channel_access(ch2, perm, 0))
           _eq_add_channel(eq, ch2);
     }