summaryrefslogtreecommitdiff
path: root/epg.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-02-19 13:27:51 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2006-02-19 13:27:51 +0100
commit47519e0536960f647145969204f1bc421088c329 (patch)
treee0b2fff0a6f00d9658b21ffc075bdd1873276bb1 /epg.c
parent1781a77e0b459bcecd8aa77e18bd1bcbad0a745f (diff)
downloadvdr-47519e0536960f647145969204f1bc421088c329.tar.gz
vdr-47519e0536960f647145969204f1bc421088c329.tar.bz2
If a recording starts and the channel's audio PID data has more language code information than the EPG's component data, the code from the channel is taken
Diffstat (limited to 'epg.c')
-rw-r--r--epg.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/epg.c b/epg.c
index 764533e4..910333b1 100644
--- a/epg.c
+++ b/epg.c
@@ -7,7 +7,7 @@
* Original version (as used in VDR before 1.3.0) written by
* Robert Schneider <Robert.Schneider@web.de> and Rolf Hakenes <hakenes@hippomi.de>.
*
- * $Id: epg.c 1.60 2006/02/19 11:15:44 kls Exp $
+ * $Id: epg.c 1.61 2006/02/19 12:50:26 kls Exp $
*/
#include "epg.h"
@@ -84,6 +84,17 @@ void cComponents::SetComponent(int Index, uchar Stream, uchar Type, const char *
p->description = strcpyrealloc(p->description, !isempty(Description) ? Description : NULL);
}
+tComponent *cComponents::GetComponent(int Index, uchar Stream, uchar Type)
+{
+ for (int i = 0; i < numComponents; i++) {
+ if (components[i].stream == Stream && components[i].type == Type) {
+ if (!Index--)
+ return &components[i];
+ }
+ }
+ return NULL;
+}
+
// --- cEvent ----------------------------------------------------------------
cEvent::cEvent(u_int16_t EventID)