summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2009-06-21 13:34:40 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2009-06-21 13:34:40 +0200
commite33ba08af4548210034ce628c4bb5fa69b08b4e0 (patch)
treea279fddebc5623aee4f5e80cc220dc90620c5a73 /device.c
parentb14d498613ce2ccbdf487b5dae2394bbdc8a6478 (diff)
downloadvdr-e33ba08af4548210034ce628c4bb5fa69b08b4e0.tar.gz
vdr-e33ba08af4548210034ce628c4bb5fa69b08b4e0.tar.bz2
Fixed cDevice::PlayTsVideo() and cDevice::PlayTsAudio() in case only part of the buffer has been accepted by the device
Diffstat (limited to 'device.c')
-rw-r--r--device.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/device.c b/device.c
index 834b6ead..00f6aa74 100644
--- a/device.c
+++ b/device.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: device.c 2.23 2009/06/06 13:25:58 kls Exp $
+ * $Id: device.c 2.24 2009/06/21 13:26:06 kls Exp $
*/
#include "device.h"
@@ -1293,6 +1293,8 @@ int cDevice::PlayTsVideo(const uchar *Data, int Length)
int l;
while (const uchar *p = tsToPesVideo.GetPes(l)) {
int w = PlayVideo(p, l);
+ if (w == 0)
+ tsToPesVideo.SetRepeatLast();
if (w <= 0)
return w;
}
@@ -1308,6 +1310,8 @@ int cDevice::PlayTsAudio(const uchar *Data, int Length)
int l;
if (const uchar *p = tsToPesAudio.GetPes(l)) {
int w = PlayAudio(p, l, 0);
+ if (w == 0)
+ tsToPesAudio.SetRepeatLast();
if (w <= 0)
return w;
tsToPesAudio.Reset();