Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] [PATCH] taste plugin for 1.3.18



Here is a patch for taste-0.0.2d and vdr-1.3.18.

Regards..
Only in vdr-1.3.18/PLUGINS/src/taste-0.0.2d: config.o
diff -ru taste-0.0.2d/control.c vdr-1.3.18/PLUGINS/src/taste-0.0.2d/control.c
--- taste-0.0.2d/control.c	2005-01-02 10:43:34.000000000 -0800
+++ vdr-1.3.18/PLUGINS/src/taste-0.0.2d/control.c	2005-01-11 21:57:15.000000000 -0800
@@ -8,7 +8,7 @@
 
 #include <vdr/remote.h>
 
-#define TASTETIMEOUT (SetupTaste.MessageTimeout * 1000) // ms
+#define TASTETIMEOUT uint64(SetupTaste.MessageTimeout * 1000) // ms
 
 bool cControlTaste::mRequested = false;
 
@@ -48,7 +48,7 @@
 	mOsd->SetMessage(mtError, tr("Channel not acceptable!"));
 	mOsd->Flush();
 
-	mStart = time_ms();
+	mStart = cTimeMs::Now();
 }
 
 eOSState cControlTaste::ProcessKey(eKeys Key)
@@ -59,7 +59,7 @@
 	case kNone:
 		if (mStart == 0)
 			Show();
-		else if (time_ms() - mStart > TASTETIMEOUT) {
+		else if (cTimeMs::Now() - mStart > TASTETIMEOUT) {
 			mSwitch = true;
 			return osEnd;
 		}
diff -ru taste-0.0.2d/control.h vdr-1.3.18/PLUGINS/src/taste-0.0.2d/control.h
--- taste-0.0.2d/control.h	2005-01-02 10:43:34.000000000 -0800
+++ vdr-1.3.18/PLUGINS/src/taste-0.0.2d/control.h	2005-01-11 21:57:32.000000000 -0800
@@ -10,8 +10,7 @@
 class cControlTaste : public cControl {
 private:
 	static bool           mRequested;
-
-  int                   mLastChannel;
+	int                   mLastChannel;
 	const cChannel       *mChannel;
 	const cEvent         *mPresent;
 	const cEvent         *mFollowing;

Home | Main Index | Thread Index