summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörg Bornkessel <hd_brummy@gentoo.org>2006-03-03 16:56:08 +0000
committerJörg Bornkessel <hd_brummy@gentoo.org>2006-03-03 16:56:08 +0000
commit6309e85690223e9e6d4617994c439244cb781146 (patch)
treedb4759e1b7d982b8595b04614f1f17a7924129a9 /media-plugins/vdr-graphlcd/files
parentUpdate musepack description to make Ed Catmour happy. (diff)
downloadgentoo-2-6309e85690223e9e6d4617994c439244cb781146.tar.gz
gentoo-2-6309e85690223e9e6d4617994c439244cb781146.tar.bz2
gentoo-2-6309e85690223e9e6d4617994c439244cb781146.zip
version bump, 0.1.2* removed no more needed block to gentoo.de ebuild
(Portage version: 2.0.54)
Diffstat (limited to 'media-plugins/vdr-graphlcd/files')
-rw-r--r--media-plugins/vdr-graphlcd/files/0.1.3/radiotext-lcr-service.diff138
-rw-r--r--media-plugins/vdr-graphlcd/files/digest-vdr-graphlcd-0.1.31
2 files changed, 139 insertions, 0 deletions
diff --git a/media-plugins/vdr-graphlcd/files/0.1.3/radiotext-lcr-service.diff b/media-plugins/vdr-graphlcd/files/0.1.3/radiotext-lcr-service.diff
new file mode 100644
index 000000000000..1b5d1f9c3c38
--- /dev/null
+++ b/media-plugins/vdr-graphlcd/files/0.1.3/radiotext-lcr-service.diff
@@ -0,0 +1,138 @@
+diff -Naur graphlcd-0.1.3.orig/state.c graphlcd-0.1.3/state.c
+--- graphlcd-0.1.3.orig/state.c 2006-01-15 18:25:47.000000000 +0100
++++ graphlcd-0.1.3/state.c 2006-03-03 17:25:38.914590500 +0100
+@@ -16,6 +16,7 @@
+
+ #include <vdr/eitscan.h>
+ #include <vdr/i18n.h>
++#include <vdr/plugin.h>
+
+ #include "compat.h"
+
+@@ -619,7 +620,10 @@
+ void cGraphLCDState::SetChannel(int ChannelNumber)
+ {
+ char tmp[16];
+-
++// patch start (http://www.vdr-portal.de/board/thread.php?postid=415431#post415431)
++ if (ChannelNumber == 0)
++ return;
++// patch end
+ mutex.Lock();
+
+ channel.number = ChannelNumber;
+@@ -638,6 +642,8 @@
+
+ void cGraphLCDState::GetProgramme()
+ {
++ bool ptitle = false;
++
+ mutex.Lock();
+ #if VDRVERSNUM < 10300
+ const cEventInfo * present = NULL, * following = NULL;
+@@ -654,9 +660,11 @@
+ {
+ event.presentTime = present->GetTime();
+ event.presentTitle = "";
+- if (!isempty(present->GetTitle()))
++ if (!isempty(present->GetTitle())) {
+ event.presentTitle = present->GetTitle();
+ event.presentSubtitle = "";
++ ptitle = true;
++ }
+ if (!isempty(present->GetSubtitle()))
+ event.presentSubtitle = present->GetSubtitle();
+ }
+@@ -688,9 +696,11 @@
+ {
+ event.presentTime = present->StartTime();
+ event.presentTitle = "";
+- if (!isempty(present->Title()))
++ if (!isempty(present->Title())) {
+ event.presentTitle = present->Title();
+ event.presentSubtitle = "";
++ ptitle = true;
++ }
+ if (!isempty(present->ShortText()))
+ event.presentSubtitle = present->ShortText();
+ }
+@@ -708,6 +718,54 @@
+ }
+ }
+ #endif
++
++#if VDRVERSNUM >= 10330
++ { // get&display Radiotext
++ cPlugin *p;
++ p = cPluginManager::CallFirstService("RadioTextService-v1.0", NULL);
++ if (p) {
++ RadioTextService_v1_0 rtext;
++ if (cPluginManager::CallFirstService("RadioTextService-v1.0", &rtext)) {
++ if (rtext.rds_info == 2 && strstr(rtext.rds_title, "---") == NULL) {
++ char rtpinfo[2][65], rtstr[140];
++ strcpy(rtpinfo[0], rtext.rds_title);
++ strcpy(rtpinfo[1], rtext.rds_artist);
++ sprintf(rtstr, "%02d:%02d %s | %s", rtext.title_start->tm_hour, rtext.title_start->tm_min, trimright(rtpinfo[0]), trimright(rtpinfo[1]));
++ ptitle ? event.presentSubtitle = rtstr : event.presentTitle = rtstr;
++ }
++ else if (rtext.rds_info > 0) {
++ char rtstr[65];
++ strcpy(rtstr, rtext.rds_text);
++ ptitle ? event.presentSubtitle = trimright(rtstr) : event.presentTitle = trimright(rtstr);
++ }
++ }
++ }
++ }
++#endif
++
++#if VDRVERSNUM >= 10330
++ { // get&display LcrData
++ cPlugin *p;
++ p = cPluginManager::CallFirstService("LcrService-v1.0", NULL);
++ if (p)
++ {
++ LcrService_v1_0 lcrData;
++ if (cPluginManager::CallFirstService("LcrService-v1.0", &lcrData))
++ {
++ if ( strstr( lcrData.destination, "---" ) == NULL )
++ {
++ char lcrStringParts[3][25], lcrString[100];
++ strcpy( lcrStringParts[0], (const char *)lcrData.destination );
++ strcpy( lcrStringParts[1], (const char *)lcrData.price );
++ strcpy( lcrStringParts[2], (const char *)lcrData.pulse );
++ sprintf(lcrString, "%s | %s", trimright(lcrStringParts[1]), trimright(lcrStringParts[2]));
++ event.presentTitle = trimright(lcrStringParts[0]);
++ event.presentSubtitle = trimright(lcrString);
++ }
++ }
++ }
++ }
++#endif
+ mutex.Unlock();
+ }
+
+diff -Naur graphlcd-0.1.3.orig/state.h graphlcd-0.1.3/state.h
+--- graphlcd-0.1.3.orig/state.h 2006-01-15 18:19:59.000000000 +0100
++++ graphlcd-0.1.3/state.h 2006-03-03 17:13:36.801461250 +0100
+@@ -127,4 +127,21 @@
+ tVolumeState GetVolumeState();
+ };
+
++// Radiotext
++struct RadioTextService_v1_0 {
++ int rds_info;
++ int rds_pty;
++ char *rds_text;
++ char *rds_title;
++ char *rds_artist;
++ struct tm *title_start;
++};
++
++// LcrData
++struct LcrService_v1_0 {
++ cString destination;
++ cString price;
++ cString pulse;
++};
++
+ #endif
diff --git a/media-plugins/vdr-graphlcd/files/digest-vdr-graphlcd-0.1.3 b/media-plugins/vdr-graphlcd/files/digest-vdr-graphlcd-0.1.3
new file mode 100644
index 000000000000..cb0e79c87c1e
--- /dev/null
+++ b/media-plugins/vdr-graphlcd/files/digest-vdr-graphlcd-0.1.3
@@ -0,0 +1 @@
+MD5 c4f048e12e61540281682c59bcc28fb2 vdr-graphlcd-0.1.3.tgz 244387