From 104dd4cec36bdd736526e35b3457dd3160fedd13 Mon Sep 17 00:00:00 2001 From: Tobias Grimm Date: Thu, 23 Apr 2009 09:34:19 +0200 Subject: After replaying, reset the last channel variable and trigger a channel switch to reinitialize the live ttxtsubs display. Patch provided by Rolf Ahrenberg --- ttxtsubs.c | 6 ++++-- 1 file 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) -- cgit v1.2.3