]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
epggrab: fix is_paired() fcn - inverted result, fixes #3227
authorJaroslav Kysela <perex@perex.cz>
Fri, 30 Oct 2015 16:42:37 +0000 (17:42 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 30 Oct 2015 16:42:37 +0000 (17:42 +0100)
src/epggrab/channel.c

index 24e91e7cc7ad9e11b252fe1e96dd6708338dc851..9cd808d5aac98cb39c99a234a1fae0fe0727b164 100644 (file)
@@ -39,7 +39,7 @@ SKEL_DECLARE(epggrab_channel_skel, epggrab_channel_t);
 static inline int
 is_paired( epggrab_channel_t *ec )
 {
-  return !ec->only_one || !LIST_FIRST(&ec->channels);
+  return ec->only_one && LIST_FIRST(&ec->channels);
 }
 
 static inline int