summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Grimm <tobias@e-tobi.loc>2009-04-23 09:34:19 +0200
committerTobias Grimm <tobias@e-tobi.loc>2009-04-23 09:34:19 +0200
commit104dd4cec36bdd736526e35b3457dd3160fedd13 (patch)
tree6ef43d3eae070317f3639f7ab91a28ffce1b7a9a
parent6a971db6fc1c7aa6eec4f0f852c4209bfd649b82 (diff)
downloadvdr-plugin-ttxtsubs-104dd4cec36bdd736526e35b3457dd3160fedd13.tar.gz
vdr-plugin-ttxtsubs-104dd4cec36bdd736526e35b3457dd3160fedd13.tar.bz2
After replaying, reset the last channel variable and trigger a channel switch to
reinitialize the live ttxtsubs display. Patch provided by Rolf Ahrenberg
-rw-r--r--ttxtsubs.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ttxtsubs.c b/ttxtsubs.c
index 44843ea..4e276b5 100644
--- a/ttxtsubs.c
+++ b/ttxtsubs.c
@@ -461,8 +461,10 @@ void cPluginTtxtsubs::Replaying(const cControl *Control, const char *Name, const
StopTtxt();
if(On)
StartTtxtPlay(mPage);
- // XXX this page number is just a fallback for old recordings which
- // don't have a index page
+ else {
+ lastc=0;
+ sem_post(&chswitchwait);
+ }
}
void cPluginTtxtsubs::PlayerTeletextData(uint8_t *p, int length)