From 70ec0dfa1bb79224349171c0b4b3e00969bcbd8e Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Fri, 16 Jan 2009 15:16:08 +0100 Subject: [PATCH] Added a missing Detach() in cTransfer::Activate() --- CONTRIBUTORS | 1 + HISTORY | 1 + transfer.c | 4 +++- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 44798fa6..f65ffcc6 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -1487,6 +1487,7 @@ Marco Schl for fixing setting the date in the channel display of the classic and sttng skins, to avoid unnecessary OSD access for changing cDvbDevice::GrabImage() to use V4L2 + for adding a missing Detach() in cTransfer::Activate() Jürgen Schmitz for reporting a bug in displaying the current channel when switching via the SVDRP diff --git a/HISTORY b/HISTORY index 7c610ad5..b1b88c08 100644 --- a/HISTORY +++ b/HISTORY @@ -5927,3 +5927,4 @@ Video Disk Recorder Revision History - Added some missing 'const' statements to cBitmap (thanks to Andreas Regel). - Fixed returning complete PES packets in cTsToPes::GetPes() (thanks to Reinhard Nissl). +- Added a missing Detach() in cTransfer::Activate() (thanks to Marco Schlüßler). diff --git a/transfer.c b/transfer.c index 9a6aee3d..ddd84736 100644 --- a/transfer.c +++ b/transfer.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: transfer.c 2.1 2008/08/15 14:32:12 kls Exp $ + * $Id: transfer.c 2.2 2009/01/16 15:16:08 kls Exp $ */ #include "transfer.h" @@ -31,6 +31,8 @@ void cTransfer::Activate(bool On) while (uchar *pmt = patPmtGenerator.GetPmt(Index)) PlayTs(pmt, TS_SIZE); } + else + cPlayer::Detach(); } void cTransfer::Receive(uchar *Data, int Length)