diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2010-11-07 12:27:25 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2010-11-07 12:27:25 +0100 |
commit | eff0655b1df8cf4c69484a9f045f7536bb71947f (patch) | |
tree | 1ce061cd7e83480016383e93b91beb4ce65f8078 /channels.c | |
parent | cfb37a7edf8caafb0f07594b080837231ba9c575 (diff) | |
download | vdr-eff0655b1df8cf4c69484a9f045f7536bb71947f.tar.gz vdr-eff0655b1df8cf4c69484a9f045f7536bb71947f.tar.bz2 |
Fixed unjustified log entries about changed channel pids
Diffstat (limited to 'channels.c')
-rw-r--r-- | channels.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: channels.c 2.16 2010/06/05 13:33:57 kls Exp $ + * $Id: channels.c 2.17 2010/11/07 12:24:59 kls Exp $ */ #include "channels.h" @@ -262,12 +262,14 @@ static int IntArraysDiffer(const int *a, const int *b, const char na[][MAXLANGCO { int result = 0; for (int i = 0; a[i] || b[i]; i++) { - if (a[i] && na && nb && strcmp(na[i], nb[i]) != 0) + if (!a[i] || !b[i]) { + result |= VALDIFF; + break; + } + if (na && nb && strcmp(na[i], nb[i]) != 0) result |= STRDIFF; if (a[i] != b[i]) result |= VALDIFF; - if (!a[i] || !b[i]) - break; } return result; } |