summaryrefslogtreecommitdiff
path: root/recording.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2007-10-12 14:52:30 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2007-10-12 14:52:30 +0200
commit0c8cda9bd007bba5b6dbae5fabc4d741d1a3ac4c (patch)
treea22c8317f28226d78095534c9c5b1f7119265415 /recording.c
parent3a4b7f065ce64a81214cc837841378f979086481 (diff)
downloadvdr-0c8cda9bd007bba5b6dbae5fabc4d741d1a3ac4c.tar.gz
vdr-0c8cda9bd007bba5b6dbae5fabc4d741d1a3ac4c.tar.bz2
Implemented handling DVB subtitles
Diffstat (limited to 'recording.c')
-rw-r--r--recording.c13
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);
}