diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2004-01-25 16:10:04 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2004-01-25 16:10:04 +0100 |
commit | 76866e7019e5edd90a8caaa59f563e747b833627 (patch) | |
tree | 1a95100546da141c77bf654ee3fcdc81c688ebf7 /channels.c | |
parent | 926e83529dc2c6fae98d192e86a7359fb5179251 (diff) | |
download | vdr-76866e7019e5edd90a8caaa59f563e747b833627.tar.gz vdr-76866e7019e5edd90a8caaa59f563e747b833627.tar.bz2 |
Fixed handling language codes in case there is no audio or Dolby PID
Diffstat (limited to 'channels.c')
-rw-r--r-- | channels.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: channels.c 1.20 2004/01/25 15:32:08 kls Exp $ + * $Id: channels.c 1.21 2004/01/25 16:02:13 kls Exp $ */ #include "channels.h" @@ -320,7 +320,7 @@ static int IntArrayToString(char *s, const int *a, int Base = 10, const char n[] int i = 0; while (a[i] || i == 0) { q += sprintf(q, Base == 16 ? "%s%X" : "%s%d", i ? "," : "", a[i]); - if (n && *n[i]) + if (a[i] && n && *n[i]) q += sprintf(q, "=%s", n[i]); i++; } |