summaryrefslogtreecommitdiff
path: root/dvbplayer.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2008-02-09 15:12:55 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2008-02-09 15:12:55 +0100
commit7ad17726d81f586307bcfba2cc9c05af0e7b6ef0 (patch)
tree0e8ebbc2ecd57eb2b4df940a54424e81b07321ff /dvbplayer.c
parent6520725bb2e4baf2dfd67e19c2e6977a1a5f1af8 (diff)
downloadvdr-7ad17726d81f586307bcfba2cc9c05af0e7b6ef0.tar.gz
vdr-7ad17726d81f586307bcfba2cc9c05af0e7b6ef0.tar.bz2
Improved sending all frames to devices that can handle them in fast forward trick speeds, including subtitles
Diffstat (limited to 'dvbplayer.c')
-rw-r--r--dvbplayer.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/dvbplayer.c b/dvbplayer.c
index a072a445..64fa559b 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.47 2007/10/13 12:20:58 kls Exp $
+ * $Id: dvbplayer.c 1.48 2008/02/09 15:10:54 kls Exp $
*/
#include "dvbplayer.h"
@@ -537,8 +537,10 @@ void cDvbPlayer::Pause(void)
Play();
else {
LOCK_THREAD;
- if (playMode == pmFast || (playMode == pmSlow && playDir == pdBackward))
- Empty();
+ if (playMode == pmFast || (playMode == pmSlow && playDir == pdBackward)) {
+ if (!(DeviceHasIBPTrickSpeed() && playDir == pdForward))
+ Empty();
+ }
DeviceFreeze();
playMode = pmPause;
}
@@ -548,8 +550,10 @@ void cDvbPlayer::Play(void)
{
if (playMode != pmPlay) {
LOCK_THREAD;
- if (playMode == pmStill || playMode == pmFast || (playMode == pmSlow && playDir == pdBackward))
- Empty();
+ if (playMode == pmStill || playMode == pmFast || (playMode == pmSlow && playDir == pdBackward)) {
+ if (!(DeviceHasIBPTrickSpeed() && playDir == pdForward))
+ Empty();
+ }
DevicePlay();
playMode = pmPlay;
playDir = pdForward;
@@ -572,7 +576,8 @@ void cDvbPlayer::Forward(void)
// run into pmPlay
case pmPlay: {
LOCK_THREAD;
- Empty();
+ if (!(DeviceHasIBPTrickSpeed() && playDir == pdForward))
+ Empty();
DeviceMute();
playMode = pmFast;
playDir = pdForward;