summaryrefslogtreecommitdiff
path: root/dvbplayer.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2013-01-27 14:18:19 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2013-01-27 14:18:19 +0100
commit36e4202c145b7d1a39a9ac3eb6a8758dd3425ffb (patch)
treece04a08eef509176a2f415c118784d9ea01e12cb /dvbplayer.c
parenta9c9b76aeb8dbe8ab84477eb7a6b4efacbfdbed4 (diff)
downloadvdr-36e4202c145b7d1a39a9ac3eb6a8758dd3425ffb.tar.gz
vdr-36e4202c145b7d1a39a9ac3eb6a8758dd3425ffb.tar.bz2
Fixed possible audio chatter when a recording is replayed to its very end
Diffstat (limited to 'dvbplayer.c')
-rw-r--r--dvbplayer.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/dvbplayer.c b/dvbplayer.c
index f2cb2d20..241c7ec8 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 2.28 2012/06/09 14:37:24 kls Exp $
+ * $Id: dvbplayer.c 2.29 2013/01/27 14:03:16 kls Exp $
*/
#include "dvbplayer.h"
@@ -548,10 +548,11 @@ void cDvbPlayer::Action(void)
}
if (p) {
int w;
+ bool VideoOnly = (dropFrame || playMode != pmPlay && !(playMode == pmSlow && playDir == pdForward)) && DeviceIsPlayingVideo();
if (isPesRecording)
- w = PlayPes(p, pc, playMode != pmPlay && !(playMode == pmSlow && playDir == pdForward) && DeviceIsPlayingVideo());
+ w = PlayPes(p, pc, VideoOnly);
else
- w = PlayTs(p, pc, playMode != pmPlay && !(playMode == pmSlow && playDir == pdForward) && DeviceIsPlayingVideo());
+ w = PlayTs(p, pc, VideoOnly);
if (w > 0) {
p += w;
pc -= w;