summaryrefslogtreecommitdiff
path: root/plugins/radio
diff options
context:
space:
mode:
authorroot <root@elwms02.(none)>2010-04-06 16:13:08 +0200
committerroot <root@elwms02.(none)>2010-04-06 16:13:08 +0200
commit0e7005fcc7483c01aa102fbea358c5ac65a48d62 (patch)
tree11517ce0d3d2977c6732b3aa583b0008083e0bd3 /plugins/radio
downloadx-vdr-0e7005fcc7483c01aa102fbea358c5ac65a48d62.tar.gz
x-vdr-0e7005fcc7483c01aa102fbea358c5ac65a48d62.tar.bz2
hello world
Diffstat (limited to 'plugins/radio')
-rw-r--r--plugins/radio/patches/radio-0.2.4_vdr-1.7.2.diff13
-rw-r--r--plugins/radio/patches/vdr-radio-0.2.4.diff22
-rw-r--r--plugins/radio/plugin.sh54
3 files changed, 89 insertions, 0 deletions
diff --git a/plugins/radio/patches/radio-0.2.4_vdr-1.7.2.diff b/plugins/radio/patches/radio-0.2.4_vdr-1.7.2.diff
new file mode 100644
index 0000000..978c162
--- /dev/null
+++ b/plugins/radio/patches/radio-0.2.4_vdr-1.7.2.diff
@@ -0,0 +1,13 @@
+diff -ruNp radio-0.2.4~/radioaudio.h radio-0.2.4/radioaudio.h
+--- radio-0.2.4~/radioaudio.h 2007-10-06 19:42:00.000000000 +0200
++++ radio-0.2.4/radioaudio.h 2009-01-11 02:42:42.000000000 +0100
+@@ -84,6 +84,9 @@ private:
+ void RassDecode(uchar *Data, int Length);
+ protected:
+ virtual void Play(const uchar *Data, int Length, uchar Id);
++#if VDRVERSNUM >= 10702
++ virtual void PlayTs(const uchar *Data, int Length) {};
++#endif
+ virtual void Mute(bool On) {};
+ virtual void Clear(void) {};
+ public:
diff --git a/plugins/radio/patches/vdr-radio-0.2.4.diff b/plugins/radio/patches/vdr-radio-0.2.4.diff
new file mode 100644
index 0000000..333df22
--- /dev/null
+++ b/plugins/radio/patches/vdr-radio-0.2.4.diff
@@ -0,0 +1,22 @@
+diff -ru radio-0.2.4.org/radio.c radio-0.2.4/radio.c
+--- radio-0.2.4.org/radio.c 2007-10-09 18:15:35.000000000 +0200
++++ radio-0.2.4/radio.c 2008-12-22 11:44:16.000000000 +0100
+@@ -710,6 +710,9 @@
+ bool isRadio = false;
+
+ if (On && FileName != NULL) {
++ char *vdrfile;
++ asprintf(&vdrfile, "%s/001.vdr", FileName);
++ if (file_exists(vdrfile)) { // check only VDR-Recordings
+ cFileName fn(FileName, false, true);
+ cUnbufferedFile *f = fn.Open();
+ if (f) {
+@@ -719,6 +722,8 @@
+ isRadio = (b[0] == 0x00) && (b[1] == 0x00) && (b[2] == 0x01) && (0xc0 <= b[3] && b[3] <= 0xdf);
+ }
+ }
++ free(vdrfile);
++ }
+
+ if (isRadio) {
+ if (!file_exists(ReplayFile))
diff --git a/plugins/radio/plugin.sh b/plugins/radio/plugin.sh
new file mode 100644
index 0000000..cd7a145
--- /dev/null
+++ b/plugins/radio/plugin.sh
@@ -0,0 +1,54 @@
+#!/bin/sh
+
+# x-vdr (Installations-Skript fuer einen VDR mit Debian als Basis)
+# von Marc Wernecke - www.zulu-entertainment.de
+# 23.10.2007
+#
+# vdr-radio
+
+# defaults
+source ./../../x-vdr.conf
+source ./../../setup.conf
+source ./../../functions
+WEB="http://www.egal-vdr.de/plugins/vdr-radio-0.2.4.tgz"
+VERSION="radio-0.2.4"
+LINK="radio"
+
+VAR=`basename $WEB`
+DIR=`pwd`
+
+# plugin entfernen
+function clean_plugin() {
+ cd $SOURCEDIR/VDR/PLUGINS/src
+ rm -rf $LINK*
+ rm -f $VDRLIBDIR/libvdr-$LINK*
+ rm -rf $VDRCONFDIR/plugins/radio
+ log "cleaning $LINK"
+}
+
+# plugin installieren
+function install_plugin() {
+ download_plugin
+ extract_plugin
+ cd $SOURCEDIR/VDR/PLUGINS/src
+ rm -f $LINK
+ ln -vfs $VERSION $LINK
+ patch_plugin
+
+ ## plugin specials - start ##
+ [ ! -d $VDRCONFDIR/plugins/radio ] && mkdir -p $VDRCONFDIR/plugins/radio
+ cp -f $SOURCEDIR/VDR/PLUGINS/src/$LINK/config/mpegstill/* $VDRCONFDIR/plugins/radio
+ chown -R $VDRUSER:$VDRGROUP $VDRCONFDIR/plugins/radio
+ ## plugin specials - ende ##
+}
+
+# plugin commands
+if [ $# \> 0 ]; then
+ cmd=$1
+ cmd_plugin
+else
+ install_plugin
+ log "install-plugin fuer $VERSION ist fertig"
+fi
+
+exit 0