diff options
author | Matthias Schwarzott <zzam@gentoo.org> | 2006-08-25 19:20:51 +0000 |
---|---|---|
committer | Matthias Schwarzott <zzam@gentoo.org> | 2006-08-25 19:20:51 +0000 |
commit | 50e444feae3d21e9498880592a96cae508632e37 (patch) | |
tree | 155c23720af1407512d0ea460059aa050a0bbdb7 /media-plugins/vdr-premiereepg | |
parent | Stable on amd64/x86 wrt bug #144141. (diff) | |
download | gentoo-2-50e444feae3d21e9498880592a96cae508632e37.tar.gz gentoo-2-50e444feae3d21e9498880592a96cae508632e37.tar.bz2 gentoo-2-50e444feae3d21e9498880592a96cae508632e37.zip |
Added epg-fix patch.
(Portage version: 2.1.1_pre5-r3)
Diffstat (limited to 'media-plugins/vdr-premiereepg')
4 files changed, 134 insertions, 1 deletions
diff --git a/media-plugins/vdr-premiereepg/ChangeLog b/media-plugins/vdr-premiereepg/ChangeLog index 6651f1dc55e8..7497f76afe8a 100644 --- a/media-plugins/vdr-premiereepg/ChangeLog +++ b/media-plugins/vdr-premiereepg/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for media-plugins/vdr-premiereepg # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-premiereepg/ChangeLog,v 1.3 2006/08/23 21:20:20 zzam Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-premiereepg/ChangeLog,v 1.4 2006/08/25 19:20:51 zzam Exp $ + +*vdr-premiereepg-0.0.6-r1 (25 Aug 2006) + + 25 Aug 2006; Matthias Schwarzott <zzam@gentoo.org> + +files/vdr-premiereepg-0.0.6-fix-epg.patch, -vdr-premiereepg-0.0.6.ebuild, + +vdr-premiereepg-0.0.6-r1.ebuild: + Added epg-fix patch. *vdr-premiereepg-0.0.6 (23 Aug 2006) diff --git a/media-plugins/vdr-premiereepg/files/digest-vdr-premiereepg-0.0.6-r1 b/media-plugins/vdr-premiereepg/files/digest-vdr-premiereepg-0.0.6-r1 new file mode 100644 index 000000000000..894a7a5d46ab --- /dev/null +++ b/media-plugins/vdr-premiereepg/files/digest-vdr-premiereepg-0.0.6-r1 @@ -0,0 +1,3 @@ +MD5 bfd7a44db57213af63f3932876f7f144 vdr-premiereepg-0.0.6.tar.gz 13921 +RMD160 746e046b1eb0423a9a1942036d41f5f57c9ebfbb vdr-premiereepg-0.0.6.tar.gz 13921 +SHA256 9c867a41202e1588328c590cbd8f50026cb6048ac4bfac7fdeb7a93e9e10b6fd vdr-premiereepg-0.0.6.tar.gz 13921 diff --git a/media-plugins/vdr-premiereepg/files/vdr-premiereepg-0.0.6-fix-epg.patch b/media-plugins/vdr-premiereepg/files/vdr-premiereepg-0.0.6-fix-epg.patch new file mode 100644 index 000000000000..ac25b14c5e97 --- /dev/null +++ b/media-plugins/vdr-premiereepg/files/vdr-premiereepg-0.0.6-fix-epg.patch @@ -0,0 +1,88 @@ +diff -urN premiereepg-0.0.6/premiereepg.c premiereepg/premiereepg.c +--- premiereepg-0.0.6/premiereepg.c 2006-06-05 18:11:34.000000000 +0200 ++++ premiereepg/premiereepg.c 2006-08-08 23:26:16.000000000 +0200 +@@ -73,6 +73,7 @@ + int OptPat; + int OrderInfo; + int RatingInfo; ++ int FixEpg; + public: + cSetupPremiereEpg(void); + }; +@@ -84,6 +85,7 @@ + OptPat=1; + OrderInfo=1; + RatingInfo=1; ++ FixEpg=0; + } + + // --- i18n -------------------------------------------------------------------- +@@ -296,6 +298,23 @@ + "", // TODO + "", // TODO + }, ++ { "Fix EPG data", ++ "EPG Daten korrigieren", ++ "", // TODO ++ "", // TODO ++ "", // TODO ++ "", // TODO ++ "", // TODO ++ "", // TODO ++ "", // TODO ++ "", // TODO ++ "", // TODO ++ "", // TODO ++ "", // TODO ++ "", // TODO ++ "", // TODO ++ "", // TODO ++ }, + + { NULL } + }; +@@ -325,6 +344,7 @@ + Add(new cMenuEditStraItem(tr("Tag option events"),&data.OptPat,NUM_PATS,optDisp)); + Add(new cMenuEditBoolItem(tr("Show order information"),&data.OrderInfo)); + Add(new cMenuEditBoolItem(tr("Show rating information"),&data.RatingInfo)); ++ Add(new cMenuEditBoolItem(tr("Fix EPG data"),&data.FixEpg)); + } + + void cMenuSetupPremiereEpg::Store(void) +@@ -333,6 +353,7 @@ + SetupStore("OptionPattern",SetupPE.OptPat); + SetupStore("OrderInfo",SetupPE.OrderInfo); + SetupStore("RatingInfo",SetupPE.RatingInfo); ++ SetupStore("FixEpg",SetupPE.FixEpg); + } + + // --- CRC16 ------------------------------------------------------------------- +@@ -575,7 +596,19 @@ + crc[0]=cit.getContentId(); + SI::PremiereContentTransmissionDescriptor *pct; + for(SI::Loop::Iterator it; (pct=(SI::PremiereContentTransmissionDescriptor *)cit.eventDescriptors.getNext(it,SI::PremiereContentTransmissionDescriptorTag)); ) { +- tChannelID channelID(Source(),pct->getOriginalNetworkId(),pct->getTransportStreamId(),pct->getServiceId()); ++ int nid=pct->getOriginalNetworkId(); ++ int tid=pct->getTransportStreamId(); ++ int sid=pct->getServiceId(); ++ if(SetupPE.FixEpg) { ++ if(nid==133) { ++ if (tid==0x03 && sid==0xf0) { tid=0x02; sid=0xe0; } ++ else if(tid==0x03 && sid==0xf1) { tid=0x02; sid=0xe1; } ++ else if(tid==0x03 && sid==0xf5) { tid=0x03; sid=0xdc; } ++ else if(tid==0x04 && sid==0xd2) { tid=0x11; sid=0xe2; } ++ else if(tid==0x11 && sid==0xd3) { tid=0x11; sid=0xe3; } ++ } ++ } ++ tChannelID channelID(Source(),nid,tid,sid); + cChannel *channel=Channels.GetByChannelID(channelID,true); + if(!channel) continue; + +@@ -742,6 +775,7 @@ + if (!strcasecmp(Name, "OptionPattern")) SetupPE.OptPat = atoi(Value); + else if (!strcasecmp(Name, "OrderInfo")) SetupPE.OrderInfo = atoi(Value); + else if (!strcasecmp(Name, "RatingInfo")) SetupPE.RatingInfo = atoi(Value); ++ else if (!strcasecmp(Name, "FixEpg")) SetupPE.FixEpg = atoi(Value); + else return false; + return true; + } diff --git a/media-plugins/vdr-premiereepg/vdr-premiereepg-0.0.6-r1.ebuild b/media-plugins/vdr-premiereepg/vdr-premiereepg-0.0.6-r1.ebuild new file mode 100644 index 000000000000..7ae147b1bcd6 --- /dev/null +++ b/media-plugins/vdr-premiereepg/vdr-premiereepg-0.0.6-r1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-premiereepg/vdr-premiereepg-0.0.6-r1.ebuild,v 1.1 2006/08/25 19:20:51 zzam Exp $ + +inherit vdr-plugin eutils + +DESCRIPTION="VDR Plugin: The plugin parses the extended EPG data which is send by Premiere on their portal channels" +HOMEPAGE="http://www.muempf.de/index.html" +SRC_URI="http://www.muempf.de/down/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="" + +# This plugin uses the libsi-code fixed in v1.4.0-3 +DEPEND=">=media-video/vdr-1.4.1" +RDEPEND="${DEPEND}" + +PATCHES="${FILESDIR}/${P}-fix-epg.patch" + +src_unpack() { + vdr-plugin_src_unpack + + cd ${S} + fix_vdr_libsi_include premiereepg.c +} + +pkg_postinst() { + vdr-plugin_pkg_postinst + + ewarn "You should delete your existing /var/vdr/video/epg.data," + ewarn "as the Handling of event-IDs has been changed in this release." +} + |