From 1f4f85a82e4e94680c17db1aa993f82ffed11973 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 28 Aug 2005 21:20:58 +0200 Subject: [PATCH] Fixed appending sequence end code cDvbPlayer::Goto() --- HISTORY | 1 + config.h | 6 +++--- dvbplayer.c | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/HISTORY b/HISTORY index 7d476188..a0f6fab8 100644 --- a/HISTORY +++ b/HISTORY @@ -3752,3 +3752,4 @@ Video Disk Recorder Revision History - Added some missing braces in remux.c (thanks to Wayne Keer for reporting this one). - Removed unused MAINMENUENTRY from svdrpdemo.c (thanks to Udo Richter for reporting this one). +- Fixed appending sequence end code in cDvbPlayer::Goto() (thanks to Reinhard Nissl). diff --git a/config.h b/config.h index 8bfbc85d..3f141b68 100644 --- a/config.h +++ b/config.h @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: config.h 1.225 2005/08/26 12:28:40 kls Exp $ + * $Id: config.h 1.226 2005/08/28 21:19:26 kls Exp $ */ #ifndef __CONFIG_H @@ -20,8 +20,8 @@ #include "i18n.h" #include "tools.h" -#define VDRVERSION "1.3.31" -#define VDRVERSNUM 10331 // Version * 10000 + Major * 100 + Minor +#define VDRVERSION "1.3.32" +#define VDRVERSNUM 10332 // Version * 10000 + Major * 100 + Minor #define MAXPRIORITY 99 #define MAXLIFETIME 99 diff --git a/dvbplayer.c b/dvbplayer.c index feb82d8e..e160697a 100644 --- a/dvbplayer.c +++ b/dvbplayer.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: dvbplayer.c 1.38 2005/08/14 10:52:45 kls Exp $ + * $Id: dvbplayer.c 1.39 2005/08/28 21:14:04 kls Exp $ */ #include "dvbplayer.h" @@ -661,7 +661,7 @@ void cDvbPlayer::Goto(int Index, bool Still) if (playMode == pmPause) DevicePlay(); // append sequence end code to get the image shown immediately with softdevices - if (r > 6) { // should be always true + if (r > 6 && (b[3] & 0xF0) == 0xE0) { // make sure to append it only to a video packet b[r++] = 0x00; b[r++] = 0x00; b[r++] = 0x01;