diff options
Diffstat (limited to 'recording.c')
-rw-r--r-- | recording.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/recording.c b/recording.c index 22bb9556..7886adaa 100644 --- a/recording.c +++ b/recording.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: recording.c 1.154 2007/06/17 13:10:12 kls Exp $ + * $Id: recording.c 1.155 2007/10/12 14:48:20 kls Exp $ */ #include "recording.h" @@ -296,6 +296,17 @@ cRecordingInfo::cRecordingInfo(const cChannel *Channel, const cEvent *Event) strn0cpy(Component->language, s, sizeof(Component->language)); } } + // The same applies to subtitles: + for (int i = 0; i < MAXSPIDS; i++) { + const char *s = Channel->Slang(i); + if (*s) { + tComponent *Component = Components->GetComponent(i, 3, 3); + if (!Component) + Components->SetComponent(Components->NumComponents(), 3, 3, s, NULL); + else if (strlen(s) > strlen(Component->language)) + strn0cpy(Component->language, s, sizeof(Component->language)); + } + } if (Components != event->Components()) ((cEvent *)event)->SetComponents(Components); } |