summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2011-12-23 20:20:55 +0100
committerJohns <johns98@gmx.net>2011-12-23 20:20:55 +0100
commit34c72d08b3304236d16b554fc1f3180267df42a6 (patch)
tree4b17685bc5f461f9d2637ae368f6c8589b6c82aa
parent06fddc206e5fec17bd59f4e8005e44bde957f8cc (diff)
downloadvdr-plugin-softhddevice-34c72d08b3304236d16b554fc1f3180267df42a6.tar.gz
vdr-plugin-softhddevice-34c72d08b3304236d16b554fc1f3180267df42a6.tar.bz2
New video stream never reset, if buffer full.
-rw-r--r--softhddev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/softhddev.c b/softhddev.c
index b3e89ed..60e4853 100644
--- a/softhddev.c
+++ b/softhddev.c
@@ -519,6 +519,7 @@ int PlayVideo(const uint8_t * data, int size)
Debug(3, "video: new stream %d\n", GetMsTicks() - VideoSwitch);
// FIXME: hack to test results
if (atomic_read(&VideoPacketsFilled) >= VIDEO_PACKET_MAX - 1) {
+ NewVideoStream = 0;
return 0;
}
VideoNextPacket(CODEC_ID_NONE);