diff options
author | Matthias Schwarzott <zzam@gentoo.org> | 2007-05-21 11:51:20 +0000 |
---|---|---|
committer | Matthias Schwarzott <zzam@gentoo.org> | 2007-05-21 11:51:20 +0000 |
commit | a727fa86161a8df1511dce05a623af0a9ea73c78 (patch) | |
tree | a061d62ca21d61faa27ae7174cf724cd5b570494 /media-plugins | |
parent | alpha stable wrt #169094 (diff) | |
download | gentoo-2-a727fa86161a8df1511dce05a623af0a9ea73c78.tar.gz gentoo-2-a727fa86161a8df1511dce05a623af0a9ea73c78.tar.bz2 gentoo-2-a727fa86161a8df1511dce05a623af0a9ea73c78.zip |
Fixed wrong assumption device-nr == card-nr. Added translations, and defaulting to astra in case channel-list is empty.
(Portage version: 2.1.2.7)
Diffstat (limited to 'media-plugins')
-rw-r--r-- | media-plugins/vdr-reelchannelscan/ChangeLog | 12 | ||||
-rw-r--r-- | media-plugins/vdr-reelchannelscan/files/0.4.3/default-source-if-no-channel-set.diff | 13 | ||||
-rw-r--r-- | media-plugins/vdr-reelchannelscan/files/0.4.3/device-numbering.diff | 174 | ||||
-rw-r--r-- | media-plugins/vdr-reelchannelscan/files/0.4.3/i18n.diff | 78 | ||||
-rw-r--r-- | media-plugins/vdr-reelchannelscan/files/0.4.3/series | 3 | ||||
-rw-r--r-- | media-plugins/vdr-reelchannelscan/files/digest-vdr-reelchannelscan-0.4.3-r2 (renamed from media-plugins/vdr-reelchannelscan/files/digest-vdr-reelchannelscan-0.4.3-r1) | 0 | ||||
-rw-r--r-- | media-plugins/vdr-reelchannelscan/vdr-reelchannelscan-0.4.3-r2.ebuild (renamed from media-plugins/vdr-reelchannelscan/vdr-reelchannelscan-0.4.3-r1.ebuild) | 5 |
7 files changed, 283 insertions, 2 deletions
diff --git a/media-plugins/vdr-reelchannelscan/ChangeLog b/media-plugins/vdr-reelchannelscan/ChangeLog index 9f199593c103..028d9adf62aa 100644 --- a/media-plugins/vdr-reelchannelscan/ChangeLog +++ b/media-plugins/vdr-reelchannelscan/ChangeLog @@ -1,6 +1,16 @@ # ChangeLog for media-plugins/vdr-reelchannelscan # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-reelchannelscan/ChangeLog,v 1.10 2007/05/21 10:12:42 zzam Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-reelchannelscan/ChangeLog,v 1.11 2007/05/21 11:51:20 zzam Exp $ + +*vdr-reelchannelscan-0.4.3-r2 (21 May 2007) + + 21 May 2007; Matthias Schwarzott <zzam@gentoo.org> + +files/0.4.3/default-source-if-no-channel-set.diff, + +files/0.4.3/i18n.diff, +files/0.4.3/device-numbering.diff, + files/0.4.3/series, -vdr-reelchannelscan-0.4.3-r1.ebuild, + +vdr-reelchannelscan-0.4.3-r2.ebuild: + Fixed wrong assumption device-nr == card-nr. Added translations, and + defaulting to astra in case channel-list is empty. *vdr-reelchannelscan-0.4.3-r1 (21 May 2007) diff --git a/media-plugins/vdr-reelchannelscan/files/0.4.3/default-source-if-no-channel-set.diff b/media-plugins/vdr-reelchannelscan/files/0.4.3/default-source-if-no-channel-set.diff new file mode 100644 index 000000000000..849b4ce30bbf --- /dev/null +++ b/media-plugins/vdr-reelchannelscan/files/0.4.3/default-source-if-no-channel-set.diff @@ -0,0 +1,13 @@ +Index: reelchannelscan-0.4.3/csmenu.c +=================================================================== +--- reelchannelscan-0.4.3.orig/csmenu.c ++++ reelchannelscan-0.4.3/csmenu.c +@@ -241,7 +241,7 @@ void cMenuChannelscan::Set() + + // avoid C/T-positions for SAT + // and take Astra as start position +- if (srcTypes[sourceStat]==SAT && (source==cSource::FromString("C") || source==cSource::FromString("T"))) ++ if (srcTypes[sourceStat]==SAT && (source==cSource::FromString("C") || source==cSource::FromString("T") || source==0)) + source = cSource::FromString("S19.2E"); + + int blankLines = 4; diff --git a/media-plugins/vdr-reelchannelscan/files/0.4.3/device-numbering.diff b/media-plugins/vdr-reelchannelscan/files/0.4.3/device-numbering.diff new file mode 100644 index 000000000000..4de4dcc572ac --- /dev/null +++ b/media-plugins/vdr-reelchannelscan/files/0.4.3/device-numbering.diff @@ -0,0 +1,174 @@ +Index: reelchannelscan-0.4.3/csmenu.c +=================================================================== +--- reelchannelscan-0.4.3.orig/csmenu.c ++++ reelchannelscan-0.4.3/csmenu.c +@@ -190,26 +190,27 @@ void cMenuChannelscan::TunerDetection() + { + + int stp=0; +- for (int i=0;i<4;i++) ++ for (int i=0;i<cDevice::NumDevices();i++) + { + cDevice *device = cDevice::GetDevice(i); +- srcTexts[i]=NULL; ++ srcTexts[srcTuners]=NULL; + if (device) { + char *txt=NULL; + if (device->ProvidesSource(cSource::stTerr)) { +- asprintf(&txt,"%s (%s %i)",tr("DVB-T - Terrestrial"),tr("Tuner"),i+1); ++ asprintf(&txt,"%s (%s %i)",tr("DVB-T - Terrestrial"),tr("Tuner"),srcTuners+1); + stp=TERR; + } + else if (device->ProvidesSource(cSource::stCable)) { +- asprintf(&txt,"%s (%s %i)",tr("DVB-C - Cable"),tr("Tuner"),i+1); ++ asprintf(&txt,"%s (%s %i)",tr("DVB-C - Cable"),tr("Tuner"),srcTuners+1); + stp=CABLE; + } + else if (device->ProvidesSource(cSource::stSat)) { +- asprintf(&txt,"%s (%s %i)",tr("DVB-S - Satellite"),tr("Tuner"),i+1); ++ asprintf(&txt,"%s (%s %i)",tr("DVB-S - Satellite"),tr("Tuner"),srcTuners+1); + stp=SAT; + } + if (txt) { + srcTypes[srcTuners]=stp; ++ srcDeviceNr[srcTuners]=i; + srcTexts[srcTuners++]=txt; + } + } +@@ -417,9 +418,9 @@ eOSState cMenuChannelscan::ProcessKey(eK + + sourceType=srcTypes[sourceStat]; + +- scp.card = sourceStat; ++ scp.deviceNr = srcDeviceNr[sourceStat]; + scp.type=sourceType; +- scp.source = ++ scp.source = source; + scp.bandwidth = bandwidth; + scp.polarization = polarization; + scp.symbolrate = symbolrate; +@@ -573,7 +574,7 @@ cMenuScanActive::cMenuScanActive(scanPar + // auto_ptr + Scan.reset(new cScan()); + +- isyslog (" start Scanning @ Card %d --- ", scp->card); ++ isyslog (" start Scanning @ Card %d --- ", scp->deviceNr); + if (!Scan->StartScanning(scp)) + { + esyslog (ERR " Tuner Error"); +Index: reelchannelscan-0.4.3/csmenu.h +=================================================================== +--- reelchannelscan-0.4.3.orig/csmenu.h ++++ reelchannelscan-0.4.3/csmenu.h +@@ -51,8 +51,9 @@ private: + int source; + int frequency; + int symbolrate; +- char *srcTexts[4]; +- int srcTypes[4]; ++ char *srcTexts[MAXDEVICES]; ++ int srcTypes[MAXDEVICES]; ++ int srcDeviceNr[MAXDEVICES]; + int srcTuners; + const char *fecTexts[10]; + const char *modTexts[10]; +Index: reelchannelscan-0.4.3/scan.c +=================================================================== +--- reelchannelscan-0.4.3.orig/scan.c ++++ reelchannelscan-0.4.3/scan.c +@@ -38,7 +38,7 @@ cScan::cScan() + + newChannels = 0; + fd_frontend= -1; +- cardnr = -1; ++ devicenr = -1; + transponderNr = 0; + channelNumber = 0; + frequency = 0; +@@ -70,26 +70,26 @@ cScan::~cScan() + + if (NFilter) + { +- cDevice::GetDevice(cardnr)->Detach(NFilter); ++ cDevice::GetDevice(devicenr)->Detach(NFilter); + delete NFilter; + NFilter=NULL; + } + + if (PFilter) + { +- cDevice::GetDevice(cardnr)->Detach(PFilter); ++ cDevice::GetDevice(devicenr)->Detach(PFilter); + delete PFilter; + PFilter=NULL; + } + if (SFilter) + { +- cDevice::GetDevice(cardnr)->Detach(SFilter); ++ cDevice::GetDevice(devicenr)->Detach(SFilter); + delete SFilter; + SFilter=NULL; + } + if (EFilter) + { +- cDevice::GetDevice(cardnr)->Detach(EFilter); ++ cDevice::GetDevice(devicenr)->Detach(EFilter); + delete EFilter; + EFilter=NULL; + } +@@ -144,8 +144,9 @@ bool cScan::StartScanning(scanParameters + + cDevice::PrimaryDevice()->StopReplay(); + +- cardnr = scp->card; +- DLOG (DBG " Stop Replay Card Number %d", cardnr); ++ devicenr = scp->deviceNr; ++ int cardnr = cDevice::GetDevice(devicenr)->CardIndex(); ++ DLOG (DBG " Stop Replay Card Number %d", deviceNr); + + scanning_on_receiving_device=true; + +@@ -330,7 +331,7 @@ void cScan::ScanDVB_S(cTransponder *tp, + } + #endif + } +- else if (cDevice::GetDevice(cardnr)->HasLock(DVBS_LOCK_TIMEOUT)) ++ else if (cDevice::GetDevice(devicenr)->HasLock(DVBS_LOCK_TIMEOUT)) + { + if (cMenuChannelscan::scanState == ssGetTransponders) { + ScanNitServices(); +@@ -500,7 +501,7 @@ void cScan::Action() + // the one and only "scanning = true" ! + // cMenuChannelscan::scanning = true; + +- device = cDevice::GetDevice(cardnr); ++ device = cDevice::GetDevice(devicenr); + std::auto_ptr<cChannel> c(new cChannel); + + cTransponders &transponders = cTransponders::GetInstance(); +Index: reelchannelscan-0.4.3/scan.h +=================================================================== +--- reelchannelscan-0.4.3.orig/scan.h ++++ reelchannelscan-0.4.3/scan.h +@@ -62,7 +62,7 @@ private: + int origUpdateChannels; + bool nitScan; + int sourceCode; // internal VDR Code for dvb Sources see vdr/sources.c +- int cardnr; ++ int devicenr; + int transponderNr; + int channelNumber; + int frequency; +Index: reelchannelscan-0.4.3/transponders.h +=================================================================== +--- reelchannelscan-0.4.3.orig/transponders.h ++++ reelchannelscan-0.4.3/transponders.h +@@ -39,7 +39,7 @@ namespace setup + #endif + + typedef struct { +- int card; ++ int deviceNr; + int type; + int source; + int frequency; // 0: Full band scan diff --git a/media-plugins/vdr-reelchannelscan/files/0.4.3/i18n.diff b/media-plugins/vdr-reelchannelscan/files/0.4.3/i18n.diff new file mode 100644 index 000000000000..dc014bdfc5fe --- /dev/null +++ b/media-plugins/vdr-reelchannelscan/files/0.4.3/i18n.diff @@ -0,0 +1,78 @@ +Index: reelchannelscan-0.4.3/i18n.c +=================================================================== +--- reelchannelscan-0.4.3.orig/i18n.c ++++ reelchannelscan-0.4.3/i18n.c +@@ -207,6 +207,28 @@ + "", // Dansk + "", // Èesky (Czech) + }, ++ { "SearchMode$Auto NIT", ++ "NIT Automatik", ++ "", ++ "", ++ "", ++ "", ++ "", ++ "", ++ "", ++ "", ++ "", ++ "", ++ "", ++ "", ++ "", ++ "", ++ "", ++ "", // Hrvatski (Croatian) ++ "", // Eesti ++ "", // Dansk ++ "", // Èesky (Czech) ++ }, + { "Manual", + "Manuell", + "", +@@ -317,6 +339,28 @@ + "", // Dansk + "", // Èesky (Czech) + }, ++ { "Tuner", ++ "Tuner", ++ "", ++ "", ++ "", ++ "", ++ "", ++ "", ++ "", ++ "", ++ "", ++ "", ++ "", ++ "", ++ "", ++ "", ++ "", ++ "", // Hrvatski (Croatian) ++ "", // Eesti ++ "", // Dansk ++ "", // Èesky (Czech) ++ }, + { "Scanning on transponder", + "Durchsuche Transponder", + "", +Index: reelchannelscan-0.4.3/csmenu.c +=================================================================== +--- reelchannelscan-0.4.3.orig/csmenu.c ++++ reelchannelscan-0.4.3/csmenu.c +@@ -128,9 +128,11 @@ cMenuChannelscan::cMenuChannelscan(int C + sBwItem[1] = "7 MHz"; + sBwItem[2] = "8 MHz"; + ++ /* + sSRScanMode[0]= tr("Intelligent 6900/6875/6111"); + sSRScanMode[1]= tr("Try all 6900/6875/6111"); + sSRScanMode[2]= tr("Manual"); ++ */ + + srScanMode=0; + diff --git a/media-plugins/vdr-reelchannelscan/files/0.4.3/series b/media-plugins/vdr-reelchannelscan/files/0.4.3/series index 0758e7ac501a..9039c46d25cf 100644 --- a/media-plugins/vdr-reelchannelscan/files/0.4.3/series +++ b/media-plugins/vdr-reelchannelscan/files/0.4.3/series @@ -1 +1,4 @@ +default-source-if-no-channel-set.diff +device-numbering.diff +i18n.diff gentoo.diff diff --git a/media-plugins/vdr-reelchannelscan/files/digest-vdr-reelchannelscan-0.4.3-r1 b/media-plugins/vdr-reelchannelscan/files/digest-vdr-reelchannelscan-0.4.3-r2 index eef97dc65401..eef97dc65401 100644 --- a/media-plugins/vdr-reelchannelscan/files/digest-vdr-reelchannelscan-0.4.3-r1 +++ b/media-plugins/vdr-reelchannelscan/files/digest-vdr-reelchannelscan-0.4.3-r2 diff --git a/media-plugins/vdr-reelchannelscan/vdr-reelchannelscan-0.4.3-r1.ebuild b/media-plugins/vdr-reelchannelscan/vdr-reelchannelscan-0.4.3-r2.ebuild index c0bb31517739..e6599be7bb4b 100644 --- a/media-plugins/vdr-reelchannelscan/vdr-reelchannelscan-0.4.3-r1.ebuild +++ b/media-plugins/vdr-reelchannelscan/vdr-reelchannelscan-0.4.3-r2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-reelchannelscan/vdr-reelchannelscan-0.4.3-r1.ebuild,v 1.1 2007/05/21 10:12:42 zzam Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-reelchannelscan/vdr-reelchannelscan-0.4.3-r2.ebuild,v 1.1 2007/05/21 11:51:20 zzam Exp $ inherit vdr-plugin @@ -27,6 +27,9 @@ pkg_setup(){ src_unpack() { vdr-plugin_src_unpack + epatch "${FILESDIR}/${PV}/default-source-if-no-channel-set.diff" + epatch "${FILESDIR}/${PV}/device-numbering.diff" + epatch "${FILESDIR}/${PV}/i18n.diff" epatch "${FILESDIR}/${PV}/gentoo.diff" fix_vdr_libsi_include filter.[ch] |